Helptickets: Auto-upload common battle replays on submit for PM harassment tickets

This commit is contained in:
Mia 2021-05-21 12:00:56 -05:00
parent 310e4e8987
commit 2cf47420ea

View File

@ -754,6 +754,11 @@ export const textTickets: {[k: string]: TextTicketInfo} = {
return buf;
},
onSubmit(ticket, text, submitter, conn) {
const targetId = toID(text[0]);
// this does the saving for us so we don't have to do anything else
getCommonBattles(targetId, Users.get(targetId), submitter.id, submitter, conn);
},
},
inapname: {
title: "What's the inappropriate username?",