From: Rigel Kent Date: Sun, 8 Dec 2019 21:27:24 +0000 (+0100) Subject: (hotfix) remove null categories in RSS/Atom feeds X-Git-Tag: v2.1.0-rc.1~244 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=857e5e2340c7a98f1c2e7e1d9deb016a65ce2297;p=oweals%2Fpeertube.git (hotfix) remove null categories in RSS/Atom feeds --- 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