Builtin-Prosody: use Peertube's avatar.
This commit is contained in:
@ -157,9 +157,9 @@ class ProsodyConfigContent {
|
||||
'uptime', // Report how long server has been running
|
||||
'ping', // Replies to XMPP pings with pongs
|
||||
'bosh', // Enable BOSH clients, aka "Jabber over HTTP"
|
||||
'posix', // POSIX functionality, sends server to background, enables syslog, etc.
|
||||
'pep', // Enables users to publish their avatar, mood, activity, playing music and more
|
||||
'vcard_legacy' // Conversion between legacy vCard and PEP Avatar, vcard
|
||||
'posix' // POSIX functionality, sends server to background, enables syslog, etc.
|
||||
// 'pep', // Enables users to publish their avatar, mood, activity, playing music and more
|
||||
// 'vcard_legacy' // Conversion between legacy vCard and PEP Avatar, vcard
|
||||
// 'vcard4' // User profiles (stored in PEP)
|
||||
|
||||
])
|
||||
@ -301,6 +301,13 @@ class ProsodyConfigContent {
|
||||
this.muc.set('peertubelivechat_test_peertube_api_url', apiurl)
|
||||
}
|
||||
|
||||
usePeertubeVCards (peertubeUrl: string): void {
|
||||
if (this.authenticated) {
|
||||
this.authenticated.add('modules_enabled', 'vcard_peertubelivechat')
|
||||
this.authenticated.set('peertubelivechat_vcard_peertube_url', peertubeUrl)
|
||||
}
|
||||
}
|
||||
|
||||
setLog (level: ProsodyLogLevel, syslog?: ProsodyLogLevel[]): void {
|
||||
let log = ''
|
||||
log += 'log = {\n'
|
||||
|
Reference in New Issue
Block a user