mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
properly closes #6698
This commit is contained in:
@@ -99,10 +99,7 @@ Flags.get = function (flagId, callback) {
|
||||
target_readable: data.base.type.charAt(0).toUpperCase() + data.base.type.slice(1) + ' ' + data.base.targetId,
|
||||
target: payload.targetObj,
|
||||
history: data.history,
|
||||
notes: data.notes.map((note) => {
|
||||
note.content = validator.escape(note.content);
|
||||
return note;
|
||||
}),
|
||||
notes: data.notes,
|
||||
reporter: payload.userObj,
|
||||
}));
|
||||
});
|
||||
@@ -323,6 +320,7 @@ Flags.getNotes = function (flagId, callback) {
|
||||
|
||||
next(null, notes.map(function (note, idx) {
|
||||
note.user = users[idx];
|
||||
note.content = validator.escape(note.content);
|
||||
return note;
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user