1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +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

@ -1,4 +1,11 @@
import { buildFileLocale, escapeHTML, getDefaultLocale, is18nLocale, POSSIBLE_LOCALES } from '@peertube/peertube-core-utils'
import {
buildFileLocale,
escapeHTML,
getDefaultLocale,
getDefaultRSSFeeds,
is18nLocale,
POSSIBLE_LOCALES
} from '@peertube/peertube-core-utils'
import { ActorImageType, HTMLServerConfig } from '@peertube/peertube-models'
import { isTestOrDevInstance, root, sha256 } from '@peertube/peertube-node-utils'
import { CONFIG } from '@server/initializers/config.js'
@ -52,7 +59,8 @@ export class PageHtml {
ogType: 'website',
twitterCard: 'summary_large_image',
forbidIndexation: false
forbidIndexation: false,
rssFeeds: getDefaultRSSFeeds(WEBSERVER.URL, CONFIG.INSTANCE.NAME)
}, {})
return customHTML