From 402f502932d6b926ce3ea84b23b381527a4dc726 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Fri, 18 May 2018 22:09:05 +0300 Subject: [PATCH] change critical comment score to low in UI --- web/app/components/comment/comment.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index ca27e0f1..bd16a75e 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -259,7 +259,7 @@ export default class Comment extends Component { const isGuest = guest || !Object.keys(store.get('user')).length; const isCurrentUser = (data.user && data.user.id) === (store.get('user') && store.get('user').id); const config = store.get('config') || {}; - const criticalCommentScore = config.critical_score; + const lowCommentScore = config.low_score; const o = { ...data, @@ -290,8 +290,8 @@ export default class Comment extends Component { const defaultMods = { pinned, - // TODO: we also have low_score, so we need to collapse comments on critical score in future - useless: userBlocked || deleted || (score <= criticalCommentScore && !mods.pinned && !mods.disabled), + // TODO: we also have critical_score, so we need to collapse comments with it in future + useless: userBlocked || deleted || (score <= lowCommentScore && !mods.pinned && !mods.disabled), // TODO: add default view mod or don't? view: o.user.admin ? 'admin' : null, replying: isReplying,