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:
parent
02d53b1786
commit
21f0fbde0d
17 changed files with 259 additions and 88 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue