mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 21:30:47 +08:00
7 lines
157 B
JavaScript
7 lines
157 B
JavaScript
export function isToxic(actions) {
|
|
return actions.some(
|
|
action =>
|
|
action.__typename === 'FlagAction' && action.reason === 'TOXIC_COMMENT'
|
|
);
|
|
}
|