aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-01-19 14:09:57 +0100
committerChocobozzz <me@florianbigard.com>2023-01-19 14:09:57 +0100
commit32fde390f465b9ceef9e49c4037acdacbe176d65 (patch)
treebd0f28ac72d0e920387da7d4e68cf73bba736bbc /server/models/video
parent1f6dd0084485e10623aeb222f1429edf30e5f823 (diff)
downloadPeerTube-32fde390f465b9ceef9e49c4037acdacbe176d65.tar.gz
PeerTube-32fde390f465b9ceef9e49c4037acdacbe176d65.tar.zst
PeerTube-32fde390f465b9ceef9e49c4037acdacbe176d65.zip
Use unknown when category is not set
Unstead of Misc, that could be a real category
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/formatter/video-format-utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/formatter/video-format-utils.ts b/server/models/video/formatter/video-format-utils.ts
index f285db477..6f05dbdc8 100644
--- a/server/models/video/formatter/video-format-utils.ts
+++ b/server/models/video/formatter/video-format-utils.ts
@@ -488,7 +488,7 @@ function videoModelToActivityPubObject (video: MVideoAP): VideoObject {
488} 488}
489 489
490function getCategoryLabel (id: number) { 490function getCategoryLabel (id: number) {
491 return VIDEO_CATEGORIES[id] || 'Misc' 491 return VIDEO_CATEGORIES[id] || 'Unknown'
492} 492}
493 493
494function getLicenceLabel (id: number) { 494function getLicenceLabel (id: number) {