# "staff like weight": 0 or 1 to match regular users?

**URL:** https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374
**Category:** Support
**Created:** [September 17, 2020, 4:18pm UTC](https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374 "2020-09-17T16:18:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![paulrudy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrudy/32/259901_2.png) [@paulrudy](https://meta.discourse.org/u/paulrudy)
#### Post date: [September 17, 2020, 4:18pm UTC](https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374/1 "2020-09-17T16:18:49Z")

</div>

It’s not entirely clear how Settings \> Other \> staff like weight works. The description says “How much extra weighting factor to give staff likes.” The use of the word “factor” seems to indicate it’s a multiplier, and that to give no extra weight to staff likes would mean “1” should be entered. Is that correct?

It was a little tricky to find much information on how the likability of posts affects the post or a user’s experience. All I could find was that the relative number of likes can influence topic summaries. Anything else?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 17, 2020, 4:56pm UTC](https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374/2 "2020-09-17T16:56:41Z")

</div>

> [@paulrudy](#):
>
> The use of the word “factor” seems to indicate it’s a multiplier, and that to give no extra weight to staff likes would mean “1” should be entered. Is that correct?

Here is where the setting is used in the code:

> <https://github.com/discourse/discourse/blob/main/app/models/post_action.rb#L211-L217>

Based on that code, for each like a post receives from a non-staff user, the post’s score will be increased by 1. For each like a post receives from a staff member, the post’s score will be increased by the value of the `staff_like_weight` setting. Setting the `staff_like_weight` to 1 will cause staff likes to affect a post’s score in the same way as non-staff likes.

---

<div class="post-metadata">

### Author: ![paulrudy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrudy/32/259901_2.png) [@paulrudy](https://meta.discourse.org/u/paulrudy)
#### Post date: [September 17, 2020, 5:11pm UTC](https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374/3 "2020-09-17T17:11:17Z")

</div>

Thanks for that clarification.

I wonder if there could be a bit more explanatory text under the setting to indicate this. An admin might miss the “factor” part, and enter 0 so as not to add weight, thereby removing any weight from staff likes whatsoever. A very minor issue, I admit 🙂

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 17, 2020, 10:56pm UTC](https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374/4 "2020-09-17T22:56:39Z")

</div>

> [@paulrudy](#):
>
> I wonder if there could be a bit more explanatory text under the setting to indicate this

If I’m reading the logic correctly, the use of the term ‘extra’ in the description is incorrect. Without making any changes to the logic that Discourse uses for calculating post scores

> How much weight to give staff likes (non-staff likes have a weight of 1.)

would be an accurate description of what the setting does.

The current description makes it seem that setting staff like weight to 0 would give staff likes the same weight as regular user’s likes, but what it would actually do is remove staff likes from the score calculation.

---

<div class="post-metadata">

### Author: ![paulrudy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paulrudy/32/259901_2.png) [@paulrudy](https://meta.discourse.org/u/paulrudy)
#### Post date: [September 17, 2020, 11:33pm UTC](https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374/5 "2020-09-17T23:33:18Z")

</div>

Yes, that’s how I read it too and what prompted my question, thank you.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 22, 2020, 9:59pm UTC](https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374/8 "2020-09-22T21:59:12Z")

</div>

The copy has been updated in this PR: [Improve staff\_like\_weight copy to indicate how the value is applied by scossar · Pull Request #10726 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/10726)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 22, 2020, 10:08pm UTC](https://meta.discourse.org/t/staff-like-weight-0-or-1-to-match-regular-users/164374/9 "2020-10-22T22:08:05Z")

</div>

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