mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 10:08:00 +08:00
Adds specific fields to the metadata in the action when flagging because suspect word.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user