Adds specific fields to the metadata in the action when flagging because suspect word.

This commit is contained in:
gaba
2017-01-03 09:36:20 -03:00
parent b0e4b79a6a
commit a02ad69568
+1 -1
View File
@@ -137,7 +137,7 @@ router.post('/', wordlist.filter('body'), (req, res, next) => {
.then((comment) => {
if (req.wordlist.suspect) {
return Comment
.addAction(comment.id, null, 'flag', 'body', 'Matched suspect word filters.')
.addAction(comment.id, null, 'flag', {field: 'body', details: 'Matched suspect word filters.'})
.then(() => comment);
}