properly closes #6698

v1.18.x
Julian Lam 7 years ago
parent 82e61d76fd
commit 2ce6a85756

@ -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;
}));
});

Loading…
Cancel
Save