mirror of
https://github.com/wassname/talk.git
synced 2026-07-19 11:28:50 +08:00
Not displaying premod or rejected comments.
This commit is contained in:
@@ -42,7 +42,7 @@ export const postComment = graphql(POST_COMMENT, {
|
||||
updateQueries: {
|
||||
AssetQuery: (oldData, {mutationResult:{data:{createComment:{comment}}}}) => {
|
||||
|
||||
if (oldData.asset.settings.moderation === 'PRE') {
|
||||
if (oldData.asset.settings.moderation === 'PRE' || comment.status === 'PREMOD' || comment.status === 'REJECTED') {
|
||||
return oldData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user