mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: #10008, add history entry for note deletion
This commit is contained in:
@@ -71,6 +71,10 @@ flagsApi.deleteNote = async (caller, data) => {
|
||||
}
|
||||
|
||||
await flags.deleteNote(data.flagId, data.datetime);
|
||||
await flags.appendHistory(data.flagId, caller.uid, {
|
||||
notes: '[[flags:note-deleted]]',
|
||||
datetime: Date.now(),
|
||||
});
|
||||
|
||||
const [notes, history] = await Promise.all([
|
||||
flags.getNotes(data.flagId),
|
||||
|
||||
Reference in New Issue
Block a user