Fix suspect label

This commit is contained in:
Chi Vinh Le
2018-01-11 11:16:30 +01:00
parent caf2b88ee8
commit 89c929f970
@@ -22,7 +22,7 @@ function getUserFlaggedType(actions) {
}
function hasSuspectedWords(actions) {
return actions.some((action) => action.__typename === 'FlagAction' && action.reason === 'Matched suspect word filter');
return actions.some((action) => action.__typename === 'FlagAction' && action.reason === 'SUSPECT_WORD');
}
function hasHistoryFlag(actions) {