(hotfix) remove null categories in RSS/Atom feeds
authorRigel Kent <sendmemail@rigelk.eu>
Sun, 8 Dec 2019 21:27:24 +0000 (22:27 +0100)
committerRigel Kent <sendmemail@rigelk.eu>
Sun, 8 Dec 2019 21:27:24 +0000 (22:27 +0100)
server/controllers/feeds.ts

index 7207baa006b60ad300702c2183c825e8a2a6d959..6b64ff22720be688d1132b604bab92a71a168ad8 100644 (file)
@@ -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