From 857e5e2340c7a98f1c2e7e1d9deb016a65ce2297 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sun, 8 Dec 2019 22:27:24 +0100 Subject: (hotfix) remove null categories in RSS/Atom feeds --- server/controllers/feeds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/feeds.ts b/server/controllers/feeds.ts index 7207baa00..6b64ff227 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 -- cgit v1.2.3