# Top Contributors toont Likes Ontvangen waarden in plaats van Likes Gegeven

**URL:** https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423
**Category:** Bug
**Tags:** top-contributors-sidebar
**Created:** [29 november 2023 om 11:26 UTC](https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423 "2023-11-29T11:26:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)
#### Post date: [29 november 2023 om 11:26 UTC](https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423/1 "2023-11-29T11:26:17Z")

</div>

> [@Top Contributors Sidebar](https://meta.discourse.org/t/top-contributors-sidebar/215110/1):
>
> The leaderboard information is fetched for a period of a year and is sorted by “likes received”. This can’t be changed as of now

Is that still true? The TC has an option to select by “likes given” and “likes received”, although at the moment it doesn’t seem to change anything. Unless there’s a huge coincidence changing between the two options doesn’t change my top contributors list and the numbers are exactly the same for both given and received.

So I’m wondering whether it’s now supposed to work but is broken, or it’s a work in progress that needs to be finished?

---

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [29 november 2023 om 15:14 UTC](https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423/2 "2023-11-29T15:14:13Z")

</div>

> [@packman](#):
>
> Is that still true? The TC has an option to select by “likes given” and “likes received”, although at the moment it doesn’t seem to change anything. Unless there’s a huge coincidence changing between the two options doesn’t change my top contributors list and the numbers are exactly the same for both given and received.

I’ve updated the OP to reflect the fact that order is now configurable.

However, I have not been able to reproduce it having no effect. Maybe it’s a huge coincidence as you said. You can verify this independent of the theme component by going to `/u?order=likes_received&period=yearly&order=likes_received` and `/u?order=likes_received&period=yearly&order=likes_given` on your site. See if the points still look the same.

---

<div class="post-metadata">

### Author: ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)
#### Post date: [3 december 2023 om 16:29 UTC](https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423/3 "2023-12-03T16:29:11Z")

</div>

Sorry for the delay in getting back with more info. I think I know why I was seeing the same users/counts when switching…caching. However, with a forced cache refresh after changing the display order the Likes Given view is showing some odd values. For Likes Received order I get…

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/a/d/7adab3af31448ce72714a7f252bbcc34e7b45d7a.png)

and the user list shows…

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/4/9/e494f47ea1beeef1c475a1c1cded0adeb0362b1d.png)

…which is correct. For Likes Given order I get…

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/4/b/14b954c48088381a7fc1c2689879a573187d0490.png)

and the user list shows…

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/d/d/bdd90455c5a4897c6692bce45bcfd98b55f84b0e.png)

So the list of usernames is correct but the TC is displaying the Likes Received values rather than Likes Given.

---

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [11 december 2023 om 13:14 UTC](https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423/4 "2023-12-11T13:14:21Z")

</div>

> [@packman](#):
>
> So the list of usernames is correct but the TC is displaying the Likes Received values rather than Likes Given.

Good catch. It looks like that’s what’s happening. That’s a bug. We’ll work on getting this fixed soon.

---

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [12 december 2023 om 12:23 UTC](https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423/5 "2023-12-12T12:23:54Z")

</div>

Thanks for the report @packman. This should be fixed now.

[https://github.com/discourse/discourse-top-contributors-sidebar/pull/13](https://github.com/discourse/discourse-top-contributors-sidebar/pull/13)

---

<div class="post-metadata">

### Author: ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)
#### Post date: [12 december 2023 om 16:16 UTC](https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423/6 "2023-12-12T16:16:28Z")

</div>

Just tested it and can confirm it’s fixed 😃

---

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [14 december 2023 om 16:17 UTC](https://meta.discourse.org/t/top-contributors-is-displaying-the-likes-received-values-rather-than-likes-given/287423/7 "2023-12-14T16:17:19Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
