# 用新图标设计更新/替换话题反应

**URL:** <https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287>\
**Category:** Support\
**Tags:** reactions\
**Created:** [2024年十一月25日 17:46 UTC](https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287 "2024-11-25T17:46:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![noahl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noahl/32/552343_2.png) [@noahl](https://meta.discourse.org/u/noahl)\
**Post date:** [2024年十一月25日 17:46 UTC](https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287/1 "2024-11-25T17:46:02Z")

</div>

我们正在为我们的论坛帖子/主题设计自己的（品牌化）反应集\*（屏幕截图中的底部 7 个）\*

 ![Screenshot 2024-11-25 at 17.40.12](https://global.discourse-cdn.com/meta/original/4X/a/8/5/a853e95dc31423a32d8f09bc98cf6dd0cff6c226.png)

* * *

2 个主要问题：

- 如果我们删除一个反应选项会怎样？具有此反应的现有主题会失去它，还是保留它？
  - 与我们使用次数最多的（3K+）相比，我们打算删除的反应在过去 12 个月中的使用次数不到 15 次。

* * *

- 是否可以替换反应的图标？
  - 例如，心形是我们使用最多的反应，我们想继续使用它，但要更新其设计。

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2024年十一月25日 19:00 UTC](https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287/2 "2024-11-25T19:00:23Z")

</div>

> [@noahl](#):
>
> 如果我们删除一个反应选项会怎样？具有此反应的现有主题会失去它，还是保留它？

只要你不删除表情符号本身，它们就会保留（如果是自定义的，默认表情符号无法删除）。

> [@noahl](#):
>
> 可以替换反应的图标吗？

如果你上传的自定义表情符号的名称与默认表情符号相同，则会使用自定义表情符号。

心形会比较棘手，因为在帖子控件下的这种形式下，它不是表情符号，而是图标。

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

所以，如果你也想替换它，你必须使用这个过程：[Replace Discourse's default SVG icons with custom icons in a theme](https://meta.discourse.org/t/replace-discourses-default-svg-icons-with-custom-icons-in-a-theme/115736)

为了完整起见，你必须替换各种默认图标：`heart`、`d-liked`、`d-unliked`、`notification.liked`、`notification.liked_2`、`notification.liked_many`、`notification.liked_consolidated`

我们有一个主题组件，可以将点赞更改为竖起大拇指，可以参考：[Change the Like Icon to 👍](https://meta.discourse.org/t/change-the-like-icon-to/87748)

---

<div class="post-metadata">

**Author:** ![noahl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noahl/32/552343_2.png) [@noahl](https://meta.discourse.org/u/noahl)\
**Post date:** [2024年十一月25日 19:12 UTC](https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287/3 "2024-11-25T19:12:46Z")

</div>

太棒了！

> [@awesomerobot](#):
>
> 如果您上传的自定义表情符号的名称与默认表情符号的名称相同，则将使用自定义表情符号

我不知道这个——学到了新东西 🤯

---

<div class="post-metadata">

**Author:** ![noahl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noahl/32/552343_2.png) [@noahl](https://meta.discourse.org/u/noahl)\
**Post date:** [2024年十二月2日 15:46 UTC](https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287/4 "2024-12-02T15:46:25Z")

</div>

> [@awesomerobot](#):
>
> 如果您上传的自定义表情符号与默认表情符号同名，则将使用自定义表情符号

@awesomerobot - 一切都很顺利，直到出现 `+1` 表情符号。上传后，它会变成 `:_1:`。

有什么想法吗？这可能是一个错误吗？

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2024年十二月2日 16:14 UTC](https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287/5 "2024-12-02T16:14:49Z")

</div>

嗯，好问题……这也会影响到类似 `-1` 和 `:?:` 的情况。

发生这种情况是因为我们通过将任何非 0-9 或 a-z 的字符替换为下划线来清理自定义表情符号的名称，我需要与团队核实一下是否可以调整这一点。

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2024年十二月3日 19:43 UTC](https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287/6 "2024-12-03T19:43:30Z")

</div>

我们将放宽对自定义表情符号名称的净化规则，因此合并后 `+` 和 `-` 将可用！

> <https://github.com/discourse/discourse/pull/30053>
>
> \*\*Description\*\*
> 
> Recent problems with custom emojis having \`+\` and \`-\` symbols… in their names have surfaced, this addresses the issue.

---

<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:** [2025年一月2日 19:43 UTC](https://meta.discourse.org/t/updating-replacing-topic-reactions-with-new-icon-designs/338287/7 "2025-01-02T19:43:48Z")

</div>

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