Fix broken link on support notification

This commit is contained in:
yflory 2024-03-28 16:11:48 +01:00
parent 1c22beee91
commit eb61351c79
2 changed files with 3 additions and 2 deletions

View File

@ -494,7 +494,8 @@ define([
return text;
};
content.handler = function () {
let url = msg.isAdmin ? '/support/#tickets' : `/moderation/#support-${content.channel}`;
let id = Util.hexToBase64(msg.channel).slice(0,10);
let url = msg.isAdmin ? '/support/#tickets' : `/moderation/#open-${id}`;
common.openURL(url);
defaultDismiss(common, data)();
};

View File

@ -992,7 +992,7 @@ Attachments:${JSON.stringify(msg.attachments, 0, 2)}`;
let active = privateData.category || 'active';
let linkedTicket;
if (active.indexOf('-') !== -1) {
linkedTicket = active.split('-')[1];
linkedTicket = active.slice(active.indexOf('-')+1);
active = active.split('-')[0];
}