# 哪些反应的更改：thumbsup：被计为喜欢：heart：

**URL:** <https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696>\
**Category:** Announcements\
**Tags:** reactions\
**Created:** [2024年二月13日 05:16 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696 "2024-02-13T05:16:57Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [2024年二月23日 07:59 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/23 "2024-02-23T07:59:13Z")

</div>

我认为网站管理员有必要在必要时进行一些操作。我认为无法自动将语言字符串更改为使用 reaction，就像 reaction 插件处于活动状态一样。因此，我认为如果 reaction 插件在核心中，_问题_也会发生，因为论坛管理员将决定是否使用它。

也许解决方案是默认将 like 重命名为 reaction。因为 ❤ 是一个 reaction，无论论坛是否使用 Discourse Reactions，这都可以正常工作。

如果通知中需要 ❤ 图标，并且启用了 Discourse Reactions，则可以通过 `discourse-emojis` 图标更改主题列表项的 likes。这可以是插件中的一个设置。

---

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年二月23日 12:39 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/24 "2024-02-23T12:39:12Z")

</div>

> [@tobiaseigen](#):
>
> “count both the reaction and a like or they only count as a like when they shouldn’t”? Are you just referring to how reactions and likes appear in the user interface?

我指的是反应的显示方式（这是我预期的），然后点赞也显示出来了（这是我没想到的）。

> [@tobiaseigen](#):
>
> I don’t understand… on meta I see reactions and heart, and even in your screenshot I can see reactions?

我的意思是，在我的通知日志中，点赞/反应根本没有那样注册，只有点赞是可见的。两者在这里都可以正常看到：

 ![Screenshot_20240223_063643_Chrome](https://global.discourse-cdn.com/meta/original/4X/5/6/9/569dc87d499915082f20aaa6c803cce663cd0c57.jpeg)  
但在那里不行：  
 ![Screenshot_20240223_063742_Chrome](https://global.discourse-cdn.com/meta/original/4X/0/3/d/03d6d2f8c0c144d8cb42894ec674af04ffcf1bda.jpeg)  
（请注意，来自“@whitewaterdeu”的那个已经完全消失了）

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2024年二月23日 12:54 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/25 "2024-02-23T12:54:12Z")

</div>

好的。目前应该看起来是这样。要查看用户个人资料上的反应，请访问例如 [https://meta.discourse.org/u/firepup650/notifications/reactions-received](https://meta.discourse.org/u/firepup650/notifications/reactions-received)。点赞和收到的反应不会显示在同一页面上。

---

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年二月23日 13:07 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/26 "2024-02-23T13:07:34Z")

</div>

这似乎说得通，但另外两种情况呢？

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2024年二月23日 13:29 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/27 "2024-02-23T13:29:19Z")

</div>

我还是不明白。如果你能提供更具体的书面复现步骤或注释截图，那将会有帮助，否则很难理解。难道你认为这里发生的事情不是按设计进行的吗？

---

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年二月23日 13:51 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/28 "2024-02-23T13:51:24Z")

</div>

在第一种情况：

> [@Firepup650](#):
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/6/d/3/6d320fe1a63a6142dc9e5a9696dd1e77e4ab2530.png)
> 
> ![image](https://global.discourse-cdn.com/meta/original/4X/0/3/5/03547e3b8d5d69acbb160eac1c235c590d85cb71.png)

它们在通知 UI（在同一个选项卡上）中同时显示为反应和点赞，这非常令人困惑。

在第二种情况：

> [@Firepup650](#):
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/6/b/5/6b5f7cbb85a3a8929dad1ad6fb7373fa4bd3a03f.png)  
> ![image](https://global.discourse-cdn.com/meta/original/4X/a/2/3/a236aa89e66683c0cd300661a4ace5fb5810d2b6.png)

它们显示为点赞，而不管实际的反应是什么。

不过，在刚刚去仔细检查了行为后，似乎这些情况都不再发生了，也许它们在几个提交之间有所不同？

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2024年二月23日 14:00 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/29 "2024-02-23T14:00:07Z")

</div>

清晰的复现步骤将非常有帮助。另外，请提供更多具体信息，例如您在哪个页面（特定网址）看到了不符合预期的内容？没有复现步骤，我们将无法确定您描述的问题，也无法决定是否要采取行动。

笼统地说，我猜您指的是用户个人资料上的通知页面。您可能遇到了“点赞”和“反应”子页面上点赞和反应显示方式的 bug。我知道在通知菜单中，我们会将反应和点赞“合并”显示，例如“@用户对您的 5 条帖子做出了反应”，以避免混乱。

 ![Screenshot 2024-02-23 at 2.58.23 PM](https://global.discourse-cdn.com/meta/original/4X/6/9/d/69dace6e77826d3a1b8209affef07a4a3bf3d98c.png)

---

<div class="post-metadata">

**Author:** ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)\
**Post date:** [2024年二月23日 14:05 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/31 "2024-02-23T14:05:46Z")

</div>

> [@tobiaseigen](#):
>
> 清晰的复现步骤将非常有帮助

🤷 刚收到回复，碰巧在页面上查看了通知，而不是在通知菜单中查看。

不管怎样，我之前能看到的其他论坛，现在都看不到了，所以……会不会是缓存问题或者几个提交版本的差异？

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2024年二月23日 14:10 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/32 "2024-02-23T14:10:32Z")

</div>

通过仔细阅读（或者说非常仔细地阅读），我实际上能够重现您描述的问题。请访问 [https://meta.discourse.org/u/Firepup650/notifications/reactions-received?include\_likes=true](https://meta.discourse.org/u/Firepup650/notifications/reactions-received?include_likes=true)，您将看到同一页面上的反应和点赞，并且您还会看到一个帖子被列出了两次，一次带有反应，一次带有爱心。请看我下面的截图。

当您在 URL 后面附加 `?include_likes=true` 时，就会发生这种情况，当您点击“折叠的通知”时，就会出现这种情况，正如我在两个帖子之前解释的那样。

我同意这是一个 bug，我们可能应该对此做些什么，但这并不紧急。

 ![Screenshot 2024-02-23 at 3.07.59 PM](https://global.discourse-cdn.com/meta/original/4X/b/7/f/b7ff39c37a1190a35867f469c1d23ce73b5cd15c.png)

---

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [2024年二月26日 00:55 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/33 "2024-02-26T00:55:16Z")

</div>

> [@tobiaseigen](#):
>
> 当URL附加了`?include_likes=true`时会发生这种情况，当你点击一个“折叠的通知”时就会发生这种情况，正如我在两个帖子之前解释的那样。

啊，我明白了，我错过了这种情况。但是的，这是一个bug，需要修复——我们有一个类似的bug，即反应点赞显示在`/notifications/likes-received` URL上。我会修复它，谢谢你的耐心等待，@Firepup650！

---

<div class="post-metadata">

**Author:** ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
**Post date:** [2024年二月27日 00:52 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/35 "2024-02-27T00:52:07Z")

</div>

问题已在此处修复：

> <https://github.com/discourse/discourse-reactions/pull/279>
>
> Similar to 97b7593a584d63b4d4ec593e27e62832c7813e84, users can see reactions
> gi…ven to them (and optionally \_also\_ likes) at \`/u/:username/notifications/reactions-received\`.
> Now, since all reactions excluding some which are configured count as likes,
> likes which are also reactions will show up on the \`/u/:username/notifications/reactions-received\`
> list, which is a little confusing.
> 
> Instead we can filter out likes that also count as reactions directly
> in \`DiscourseReactions::CustomReactionsController#reactions\_received\`
> 
> c.f. https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/32?u=martin

---

<div class="post-metadata">

**Author:** ![Robin.Grant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robin.grant/32/308261_2.png) [@Robin.Grant](https://meta.discourse.org/u/Robin.Grant)\
**Post date:** [2024年二月27日 11:40 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/36 "2024-02-27T11:40:18Z")

</div>

此更改何时实施？

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)\
**Post date:** [2024年二月27日 21:47 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/38 "2024-02-27T21:47:54Z")

</div>

欢迎来到社区 Robin 🎉

这已经实现了。如果您是自托管用户 \[1\]，您所需要做的就是升级站点，使其处于最新版本。

* * *

1. 如果您安装了 [reactions](https://meta.discourse.org/t/discourse-reactions/183261) 插件

---

<div class="post-metadata">

**Author:** ![Robin.Grant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robin.grant/32/308261_2.png) [@Robin.Grant](https://meta.discourse.org/u/Robin.Grant)\
**Post date:** [2024年二月27日 22:55 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/39 "2024-02-27T22:55:24Z")

</div>

此功能是否已在 Beta 版本中实现？（我使用的是第三方托管服务提供商，他们为我维护 Discourse 实例，并会及时更新到每个 Beta 版本）。我的 Discourse 版本似乎还没有出现这种情况！

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)\
**Post date:** [2024年二月29日 10:37 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/40 "2024-02-29T10:37:27Z")

</div>

如果您使用其他托管服务提供商，那么您将不得不等待他们更新您的论坛。

---

<div class="post-metadata">

**Author:** ![Robin.Grant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robin.grant/32/308261_2.png) [@Robin.Grant](https://meta.discourse.org/u/Robin.Grant)\
**Post date:** [2024年二月29日 11:08 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/41 "2024-02-29T11:08:28Z")

</div>

好的——所以，只是为了再次确认，这个功能没有包含在上次的 beta 版本中吗？

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2024年二月29日 12:06 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/42 "2024-02-29T12:06:02Z")

</div>

更改在 discourse-reactions 插件中，因此它不与核心的发布时间表挂钩。从技术上讲，它是在 2 月 13 日的插件的[此提交](https://github.com/discourse/discourse-reactions/commit/2b2a7281a722486e483d83ad1be86a6d273e4763)中添加的。因此，如果您（或您的托管提供商）自那时以来更新了插件，您将拥有此更改。

您可以通过查看站点设置中的新“discourse reactions excluded from like”设置来验证。如果该设置存在，那么您就有了新的行为。

---

<div class="post-metadata">

**Author:** ![Robin.Grant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robin.grant/32/308261_2.png) [@Robin.Grant](https://meta.discourse.org/u/Robin.Grant)\
**Post date:** [2024年二月29日 12:28 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/43 "2024-02-29T12:28:12Z")

</div>

谢谢 @david - 现在清楚多了！😄

---

<div class="post-metadata">

**Author:** ![simon\_tomes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon_tomes/32/457537_2.png) [@simon\_tomes](https://meta.discourse.org/u/simon_tomes)\
**Post date:** [2024年二月29日 17:17 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/44 "2024-02-29T17:17:42Z")

</div>

我们使用 #gamification 插件 (`/admin/plugins/gamification`)。

鉴于此更改，我们是否应该重新计算所有分数？我正在考虑为“所有时间”重新计算，以便将所有反应（`discourse_reactions_excluded_from_like` 列表中的反应除外）视为点赞。

 ![Screenshot 2024-02-29 at 17.14.37](https://global.discourse-cdn.com/meta/original/4X/7/6/6/76691c4f6bf84b7e17a04bed15c39e50f824280b.png)

---

<div class="post-metadata">

**Author:** ![Qwerty8](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/qwerty8/32/329159_2.png) [@Qwerty8](https://meta.discourse.org/u/Qwerty8)\
**Post date:** [2024年三月23日 03:20 UTC](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696/47 "2024-03-23T03:20:29Z")

</div>

移除反应似乎会破坏，@Firepup650 在此处的反应似乎也显示了一个赞：

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

（他添加了 😵‍💫，用它做出反应，然后移除了 😵‍💫）

[上一頁](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696.md?page=1)

[下一頁](https://meta.discourse.org/t/changes-to-which-reactions-are-counted-as-likes/294696.md?page=3)
