From ecf63ffb55b29a764b7e066259e4845f9642bda7 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Fri, 16 Jun 2017 01:49:35 +0700 Subject: [PATCH] More accurate edit notification --- client/coral-admin/src/graphql/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/coral-admin/src/graphql/utils.js b/client/coral-admin/src/graphql/utils.js index 1a3262529..407a4e53b 100644 --- a/client/coral-admin/src/graphql/utils.js +++ b/client/coral-admin/src/graphql/utils.js @@ -138,7 +138,7 @@ export function handleCommentStatusChange(root, comment, {sort, notify, user, ac export function handleCommentEdit(root, comment, {sort, activeQueue}) { if ( queueHasComment(root, activeQueue, comment.id) - || comment.status === 'PREMOD' && root[`${activeQueue}Count`] < limit + || comment.status.toLowerCase() === activeQueue && shouldCommentBeAdded(root, activeQueue, comment, sort) ) { const text = `${comment.user.username} edited comment to "${truncate(comment.body, 50)}"`; notification.info(text);