fix: remove unneeded flagged property in favour of flagId, use existing language key for rescind-report

cc @oplik0
This commit is contained in:
Julian Lam
2024-04-30 10:57:25 -04:00
parent 61a595def2
commit 449ffd66c3
5 changed files with 8 additions and 5 deletions

View File

@@ -354,7 +354,8 @@ Flags.getFlagIdByTarget = async function (type, id) {
throw new Error('[[error:invalid-data]]');
}
return await method(id, 'flagId');
const flagId = await method(id, 'flagId');
return utils.isNumber(flagId) ? parseInt(flagId, 10) : flagId;
};
async function modifyNotes(notes) {