Updating xmppjs-chat-box version.

This commit is contained in:
John Livingston 2024-03-07 10:14:36 +01:00
parent 7c544600f9
commit 2115b352a4
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
4 changed files with 315 additions and 311 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## ??? (Not Released Yet)
* Updating xmppjs-chat-box version.
## 8.3.2
* Temporary security fix for #332: rollback of v8.3.1:

618
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@
"http-proxy": "^1.18.1",
"log-rotate": "^0.2.8",
"validate-color": "^2.2.1",
"xmppjs-chat-bot": "^0.2.8"
"xmppjs-chat-bot": "^0.3.0"
},
"devDependencies": {
"@peertube/feed": "^5.1.0",

View File

@ -320,7 +320,7 @@ async function getProsodyConfig (options: RegisterServerOptionsV5): Promise<Pros
if (useBots) {
config.useBotsVirtualHost(paths.botAvatars, paths.botAvatarsFiles)
bots.moderation = await BotConfiguration.singleton().getModerationBotGlobalConf()
if (bots.moderation?.connection?.password) {
if (bots.moderation?.connection?.password && typeof bots.moderation.connection.password === 'string') {
valuesToHideInDiagnostic.set('BotPassword', bots.moderation.connection.password)
}
}