Bird avatars.

This commit is contained in:
John Livingston
2024-02-09 15:12:48 +01:00
parent 41ce8e4233
commit fbeffef34b
158 changed files with 273 additions and 2 deletions

View File

@ -96,7 +96,7 @@ async function getProsodyFilePaths (options: RegisterServerOptions): Promise<Pro
}
let avatarSet: AvatarSet = (settings['avatar-set'] ?? 'sepia') as AvatarSet
if (!['sepia', 'cat', 'legacy'].includes(avatarSet)) {
if (!['sepia', 'cat', 'bird', 'legacy'].includes(avatarSet)) {
logger.error('Invalid avatar-set setting, using sepia as default')
avatarSet = 'sepia'
}

View File

@ -5,7 +5,7 @@ import { RoomChannel } from './room-channel'
import { BotsCtl } from './bots/ctl'
import { loc } from './loc'
type AvatarSet = 'sepia' | 'cat' | 'legacy'
type AvatarSet = 'sepia' | 'cat' | 'bird' | 'legacy'
async function initSettings (options: RegisterServerOptions): Promise<void> {
const { peertubeHelpers, registerSetting, settingsManager } = options
@ -226,6 +226,7 @@ Please read
options: [
{ value: 'sepia', label: loc('avatar_set_option_sepia') },
{ value: 'cat', label: loc('avatar_set_option_cat') },
{ value: 'bird', label: loc('avatar_set_option_bird') },
{ value: 'legacy', label: loc('avatar_set_option_legacy') }
] as Array<{
value: AvatarSet