mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 13:39:36 -06:00
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
This commit is contained in:
parent
2b9e8e5a7d
commit
b1d04412db
@ -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 }))
|
||||
]));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user