Cats avatars.
This commit is contained in:
@ -96,7 +96,7 @@ async function getProsodyFilePaths (options: RegisterServerOptions): Promise<Pro
|
||||
}
|
||||
|
||||
let avatarSet: AvatarSet = (settings['avatar-set'] ?? 'sepia') as AvatarSet
|
||||
if (!['sepia', 'legacy'].includes(avatarSet)) {
|
||||
if (!['sepia', 'cat', 'legacy'].includes(avatarSet)) {
|
||||
logger.error('Invalid avatar-set setting, using sepia as default')
|
||||
avatarSet = 'sepia'
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ import { RoomChannel } from './room-channel'
|
||||
import { BotsCtl } from './bots/ctl'
|
||||
import { loc } from './loc'
|
||||
|
||||
type AvatarSet = 'sepia' | 'legacy'
|
||||
type AvatarSet = 'sepia' | 'cat' | 'legacy'
|
||||
|
||||
async function initSettings (options: RegisterServerOptions): Promise<void> {
|
||||
const { peertubeHelpers, registerSetting, settingsManager } = options
|
||||
@ -225,6 +225,7 @@ Please read
|
||||
private: true,
|
||||
options: [
|
||||
{ value: 'sepia', label: loc('avatar_set_option_sepia') },
|
||||
{ value: 'cat', label: loc('avatar_set_option_cat') },
|
||||
{ value: 'legacy', label: loc('avatar_set_option_legacy') }
|
||||
] as Array<{
|
||||
value: AvatarSet
|
||||
|
Reference in New Issue
Block a user