mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-24 13:13:13 -05:00
Minor messenger username fix.
This commit is contained in:
parent
7bbba5215a
commit
ddcddb7105
@ -2759,8 +2759,8 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
|
||||
if (idSplit.length == 7) {
|
||||
const user = obj.users[idSplit[4] + '/' + idSplit[5] + '/' + idSplit[6]];
|
||||
if (user != null) {
|
||||
if (domain.meshmessengertitle.indexOf('{0}') >= 0) { options.username = encodeURIComponent(user.realname ? user.realname : user._id.split('/')[2]).replace(/'/g, '%27'); }
|
||||
if (domain.meshmessengertitle.indexOf('{1}') >= 0) { options.userid = encodeURIComponent(user._id.split('/')[2]).replace(/'/g, '%27'); }
|
||||
if (domain.meshmessengertitle.indexOf('{0}') >= 0) { options.username = encodeURIComponent(user.realname ? user.realname : user.name).replace(/'/g, '%27'); }
|
||||
if (domain.meshmessengertitle.indexOf('{1}') >= 0) { options.userid = encodeURIComponent(user.name); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user