1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add RSS feed discovery

This commit is contained in:
Chocobozzz 2025-02-14 15:47:01 +01:00
parent 02d53b1786
commit 21f0fbde0d
No known key found for this signature in database
GPG key ID: 583A612D890159BE
17 changed files with 259 additions and 88 deletions

View file

@ -0,0 +1,16 @@
import { MVideoPlaylist } from '@server/types/models/video/video-playlist.js'
import { MVideo } from '@server/types/models/video/video.js'
import { TagsHtml } from './tags-html.js'
export function buildEmptyEmbedHTML (options: {
html: string
playlist?: MVideoPlaylist
video?: MVideo
}) {
const { html, playlist, video } = options
let htmlResult = TagsHtml.addTitleTag(html)
htmlResult = TagsHtml.addDescriptionTag(htmlResult)
return TagsHtml.addTags(htmlResult, { forbidIndexation: true }, { playlist, video })
}