mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Make UserDetail work independently
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
export function getCommentType(comment) {
|
||||
let commentType = '';
|
||||
if (comment.status === 'PREMOD') {
|
||||
commentType = 'premod';
|
||||
} else if (comment.actions && comment.actions.some((a) => a.__typename === 'FlagAction')) {
|
||||
commentType = 'flagged';
|
||||
}
|
||||
return commentType;
|
||||
}
|
||||
Reference in New Issue
Block a user