mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
Reverting comment changes
This commit is contained in:
@@ -41,10 +41,7 @@ const createAction = async ({user = {}, pubsub, loaders: {Comments}}, {item_id,
|
||||
}
|
||||
|
||||
if (comment) {
|
||||
let user = await UsersService.findById(comment.author_id);
|
||||
if(!user.roles){
|
||||
pubsub.publish('commentFlagged', comment);
|
||||
}
|
||||
}
|
||||
|
||||
return action;
|
||||
|
||||
Reference in New Issue
Block a user