From b1d04412dbc38bc5edd9b7a957e314c6684b2f93 Mon Sep 17 00:00:00 2001 From: Steven Slade Date: Wed, 6 Apr 2016 09:49:27 -0700 Subject: [PATCH] altering topic-map widget's like count to show total topic like count * altering topic-map widget's like count to display total topic like count rather than the first post's like count * changing likeCount to topicLikeCount for virtual dom element to show total likes of thread --- app/assets/javascripts/discourse/widgets/topic-map.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-map.js.es6 b/app/assets/javascripts/discourse/widgets/topic-map.js.es6 index 2ac81cedf5..53e1fadde9 100644 --- a/app/assets/javascripts/discourse/widgets/topic-map.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-map.js.es6 @@ -81,8 +81,8 @@ createWidget('topic-map-summary', { if (attrs.topicLikeCount) { contents.push(h('li.secondary', [ - numberNode(attrs.likeCount), - h('h4', I18n.t('likes_lowercase', { count: attrs.likeCount })) + numberNode(attrs.topicLikeCount), + h('h4', I18n.t('likes_lowercase', { count: attrs.topicLikeCount })) ])); }