mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 03:27:01 +02:00
fix: remove unneeded flagged property in favour of flagId, use existing language key for rescind-report
cc @oplik0
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user