1
0
Fork 0

(hotfix) remove null categories in RSS/Atom feeds

This commit is contained in:
Rigel Kent 2019-12-08 22:27:24 +01:00
parent 39aad8cc85
commit 857e5e2340
No known key found for this signature in database
GPG Key ID: 5E53E96A494E452F
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ async function generateVideoFeed (req: express.Request, res: express.Response) {
categories: [video.category ? { categories: [video.category ? {
value: video.category, value: video.category,
label: VideoModel.getCategoryLabel(video.category) label: VideoModel.getCategoryLabel(video.category)
} : null], } : null].filter(Boolean),
community: { community: {
statistics: { statistics: {
views: video.views views: video.views