diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-19 14:09:57 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-01-19 14:09:57 +0100 |
commit | 32fde390f465b9ceef9e49c4037acdacbe176d65 (patch) | |
tree | bd0f28ac72d0e920387da7d4e68cf73bba736bbc /server/models/video/formatter | |
parent | 1f6dd0084485e10623aeb222f1429edf30e5f823 (diff) | |
download | PeerTube-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/formatter')
-rw-r--r-- | server/models/video/formatter/video-format-utils.ts | 2 |
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 | ||
490 | function getCategoryLabel (id: number) { | 490 | function getCategoryLabel (id: number) { |
491 | return VIDEO_CATEGORIES[id] || 'Misc' | 491 | return VIDEO_CATEGORIES[id] || 'Unknown' |
492 | } | 492 | } |
493 | 493 | ||
494 | function getLicenceLabel (id: number) { | 494 | function getLicenceLabel (id: number) { |