Builtin Prosody: display random avatars for anonymous users.
This commit is contained in:
@ -308,6 +308,13 @@ class ProsodyConfigContent {
|
||||
}
|
||||
}
|
||||
|
||||
useAnonymousRandomVCards (avatarPath: string): void {
|
||||
if (this.anon) {
|
||||
this.anon.add('modules_enabled', 'random_vcard_peertubelivechat')
|
||||
this.anon.set('peertubelivechat_random_vcard_avatars_path', avatarPath)
|
||||
}
|
||||
}
|
||||
|
||||
setLog (level: ProsodyLogLevel, syslog?: ProsodyLogLevel[]): void {
|
||||
let log = ''
|
||||
log += 'log = {\n'
|
||||
|
@ -6,6 +6,7 @@ interface ProsodyFilePaths {
|
||||
config: string
|
||||
data: string
|
||||
modules: string
|
||||
avatars: string
|
||||
}
|
||||
|
||||
export {
|
||||
|
Reference in New Issue
Block a user