diff --git a/src/core/client/admin/mutations/RejectCommentMutation.ts b/src/core/client/admin/mutations/RejectCommentMutation.ts index cf74b1dbb..db4c52639 100644 --- a/src/core/client/admin/mutations/RejectCommentMutation.ts +++ b/src/core/client/admin/mutations/RejectCommentMutation.ts @@ -100,10 +100,34 @@ const RejectCommentMutation = createMutation( proxy.setValue(true, "viewerDidModerate"); const connections = [ - getQueueConnection(store, "REPORTED", input.storyID), - getQueueConnection(store, "PENDING", input.storyID), - getQueueConnection(store, "UNMODERATED", input.storyID), - getQueueConnection(store, "APPROVED", input.storyID), + getQueueConnection( + store, + "REPORTED", + input.storyID, + input.siteID, + input.section + ), + getQueueConnection( + store, + "PENDING", + input.storyID, + input.siteID, + input.section + ), + getQueueConnection( + store, + "UNMODERATED", + input.storyID, + input.siteID, + input.section + ), + getQueueConnection( + store, + "APPROVED", + input.storyID, + input.siteID, + input.section + ), ].filter((c) => c); connections.forEach((con) => ConnectionHandler.deleteNode(con!, input.commentID)