Skip to content

Commit 18ca337

Browse files
authored
Helptickets: Fix user profile links with spaces (#10951)
1 parent 6280f33 commit 18ca337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/chat-plugins/helptickets.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ export const textTickets: { [k: string]: TextTicketInfo } = {
11571157
];
11581158
const tar = toID(ticket.text[0]); // should always be the reported userid
11591159
const name = Utils.escapeHTML(Users.getExact(tar)?.name || tar);
1160-
buf += `<br /><strong>Reported user:</strong> <a href="https://${Config.routes.root}/users/${name}">${name}</a> `;
1160+
buf += `<br /><strong>Reported user:</strong> <a href="https://${Config.routes.root}/users/${tar}">${name}</a> `;
11611161
buf += `<button class="button" name="send" value="/modlog room=global,user='${tar}'">Global Modlog</button><br />`;
11621162
buf += `<details ${state?.list ? 'open' : ''} class="readmore">`;
11631163
buf += `<summary>Punish <strong>${name}</strong> (reported user)</summary>`;

0 commit comments

Comments
 (0)