# Topic-map-summary only shows the likes of the first post

**URL:** https://meta.discourse.org/t/topic-map-summary-only-shows-the-likes-of-the-first-post/42093
**Category:** Bug
**Created:** [5 april 2016 om 22:34 UTC](https://meta.discourse.org/t/topic-map-summary-only-shows-the-likes-of-the-first-post/42093 "2016-04-05T22:34:06Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![stevenpslade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenpslade/32/53550_2.png) [@stevenpslade](https://meta.discourse.org/u/stevenpslade)
#### Post date: [5 april 2016 om 22:34 UTC](https://meta.discourse.org/t/topic-map-summary-only-shows-the-likes-of-the-first-post/42093/1 "2016-04-05T22:34:06Z")

</div>

Currently the topic-map-summary (showing links, views, likes) only shows the likes for the first post and not the total likes of the entire topic. Shouldn’t it show how many likes are in the thread since the bar’s purpose is to be an overview?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5 april 2016 om 22:48 UTC](https://meta.discourse.org/t/topic-map-summary-only-shows-the-likes-of-the-first-post/42093/2 "2016-04-05T22:48:18Z")

</div>

Wow you are right that is totally a bug! Can we fix that tomorrow @eviltrout? That will also need backporting…

---

<div class="post-metadata">

### Author: ![stevenpslade](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stevenpslade/32/53550_2.png) [@stevenpslade](https://meta.discourse.org/u/stevenpslade)
#### Post date: [5 april 2016 om 22:49 UTC](https://meta.discourse.org/t/topic-map-summary-only-shows-the-likes-of-the-first-post/42093/3 "2016-04-05T22:49:16Z")

</div>

Pretty sure the fix is changing `numberNode(attrs.likeCount)` to `numberNode(attrs.topicLikeCount)` in the `topic-map` widget.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5 april 2016 om 23:08 UTC](https://meta.discourse.org/t/topic-map-summary-only-shows-the-likes-of-the-first-post/42093/4 "2016-04-05T23:08:02Z")

</div>

Nice! If you want to PR it go for it!

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [6 april 2016 om 18:53 UTC](https://meta.discourse.org/t/topic-map-summary-only-shows-the-likes-of-the-first-post/42093/5 "2016-04-06T18:53:44Z")

</div>

Thanks, I’ve accpted the PR:

[https://github.com/discourse/discourse/commit/b1d04412dbc38bc5edd9b7a957e314c6684b2f93](https://github.com/discourse/discourse/commit/b1d04412dbc38bc5edd9b7a957e314c6684b2f93)

It hasn’t deployed to meta yet but it should shortly. Thanks!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6 april 2016 om 21:11 UTC](https://meta.discourse.org/t/topic-map-summary-only-shows-the-likes-of-the-first-post/42093/6 "2016-04-06T21:11:30Z")

</div>


