Skip to content

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

(hotfix) remove null categories in RSS/Atom feeds

Rigel Kent857e5e2340c7
diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts
index 7207baa006..6b64ff2272 100644
--- a/server/controllers/feeds.ts
+++ b/server/controllers/feeds.ts
@@ -156,7 +156,7 @@ async function generateVideoFeed (req: express.Request, res: express.Response) {
categories: [video.category ? {
value: video.category,
label: VideoModel.getCategoryLabel(video.category)
- } : null],
+ } : null].filter(Boolean),
community: {
statistics: {
views: video.views