Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix invalid remote podcast feed

Chocobozzz73c6e9e094df
diff --git a/server/core/controllers/feeds/shared/video-feed-utils.ts b/server/core/controllers/feeds/shared/video-feed-utils.ts
index 32b99bfd9b..6d874adb7e 100644
--- a/server/core/controllers/feeds/shared/video-feed-utils.ts
+++ b/server/core/controllers/feeds/shared/video-feed-utils.ts
@@ -2,7 +2,7 @@ import { getChannelPodcastFeed } from '@peertube/peertube-core-utils'
import { VideoIncludeType } from '@peertube/peertube-models'
import { mdToPlainText, toSafeHtml } from '@server/helpers/markdown.js'
import { CONFIG } from '@server/initializers/config.js'
-import { REMOTE_SCHEME, WEBSERVER } from '@server/initializers/constants.js'
+import { WEBSERVER } from '@server/initializers/constants.js'
import { getServerActor } from '@server/models/application/application.js'
import { getCategoryLabel } from '@server/models/video/formatter/index.js'
import { DisplayOnlyForFollowerOptions } from '@server/models/video/sql/video/index.js'
@@ -67,14 +67,12 @@ export function getCommonVideoFeedAttributes (video: VideoModel) {
}
export function getPodcastFeedUrlCustomTag (videoChannel: MChannelHostOnly) {
- const rootHost = videoChannel.Actor.getHost()
- const originUrl = `${REMOTE_SCHEME.HTTP}://${rootHost}`
-
return {
name: 'podcast:txt',
attributes: {
purpose: 'p20url'
},
- value: getChannelPodcastFeed(originUrl, videoChannel)
+ // TODO: use remote channel podcast feed URL
+ value: getChannelPodcastFeed(WEBSERVER.URL, videoChannel)
}
}