aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2019-12-08 22:27:24 +0100
committerRigel Kent <sendmemail@rigelk.eu>2019-12-08 22:27:24 +0100
commit857e5e2340c7a98f1c2e7e1d9deb016a65ce2297 (patch)
tree35fe3fa921c3d2f4ba65847bb06fc07581bfaa63 /server
parent39aad8cc856a8173e7a77c198b3968952d39f4b7 (diff)
downloadPeerTube-857e5e2340c7a98f1c2e7e1d9deb016a65ce2297.tar.gz
PeerTube-857e5e2340c7a98f1c2e7e1d9deb016a65ce2297.tar.zst
PeerTube-857e5e2340c7a98f1c2e7e1d9deb016a65ce2297.zip
(hotfix) remove null categories in RSS/Atom feeds
Diffstat (limited to 'server')
-rw-r--r--server/controllers/feeds.ts2
1 files changed, 1 insertions, 1 deletions
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) {
156 categories: [video.category ? { 156 categories: [video.category ? {
157 value: video.category, 157 value: video.category,
158 label: VideoModel.getCategoryLabel(video.category) 158 label: VideoModel.getCategoryLabel(video.category)
159 } : null], 159 } : null].filter(Boolean),
160 community: { 160 community: {
161 statistics: { 161 statistics: {
162 views: video.views 162 views: video.views