From 32fde390f465b9ceef9e49c4037acdacbe176d65 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Jan 2023 14:09:57 +0100 Subject: Use unknown when category is not set Unstead of Misc, that could be a real category --- server/models/video/formatter/video-format-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/models/video/formatter/video-format-utils.ts') 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 { } function getCategoryLabel (id: number) { - return VIDEO_CATEGORIES[id] || 'Misc' + return VIDEO_CATEGORIES[id] || 'Unknown' } function getLicenceLabel (id: number) { -- cgit v1.2.3