From cde9b3f74a3a4054558b0afe5169e79a1021b95e Mon Sep 17 00:00:00 2001 From: matty Date: Mon, 5 Aug 2024 17:54:22 -0400 Subject: [PATCH] add options in config --- languages/en.yml | 1 + server/lib/settings.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/languages/en.yml b/languages/en.yml index 35c2d624..22b31a56 100644 --- a/languages/en.yml +++ b/languages/en.yml @@ -175,6 +175,7 @@ avatar_set_description: | Please refer to the documentation: Settings. avatar_set_option_sepia: "Sepia (Peertube mascot)" +avatar_set_option_nctv: "NCTV Branded" avatar_set_option_cat: "Cats" avatar_set_option_bird: "Birds" avatar_set_option_fenec: "Fenecs (Mobilizon mascot)" diff --git a/server/lib/settings.ts b/server/lib/settings.ts index 71bf1981..47e49d75 100644 --- a/server/lib/settings.ts +++ b/server/lib/settings.ts @@ -13,7 +13,7 @@ import { LivechatProsodyAuth } from './prosody/auth' import { loc } from './loc' const escapeHTML = require('escape-html') -type AvatarSet = 'sepia' | 'cat' | 'bird' | 'fenec' | 'abstract' | 'legacy' +type AvatarSet = 'sepia' | 'cat' | 'bird' | 'fenec' | 'abstract' | 'legacy' | 'nctv' async function initSettings (options: RegisterServerOptions): Promise { const { peertubeHelpers, settingsManager } = options @@ -506,6 +506,7 @@ function initThemingSettings ({ registerSetting }: RegisterServerOptions): void private: true, options: [ { value: 'sepia', label: loc('avatar_set_option_sepia') }, + { value: 'NCTV', label: loc('avatar_set_option_nctv') }, { value: 'cat', label: loc('avatar_set_option_cat') }, { value: 'bird', label: loc('avatar_set_option_bird') }, { value: 'fenec', label: loc('avatar_set_option_fenec') },