# 评论中的表情符号

**URL:** https://meta.discourse.org/t/emojis-in-comments/123260
**Category:** Development
**Created:** [2019年七月18日 06:19 UTC](https://meta.discourse.org/t/emojis-in-comments/123260 "2019-07-18T06:19:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Vishal\_Kaushik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vishal_kaushik/32/140452_2.png) [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)
#### Post date: [2019年七月18日 06:19 UTC](https://meta.discourse.org/t/emojis-in-comments/123260/1 "2019-07-18T06:19:38Z")

</div>

评论中的表情符号显示异常，原因是它们引用的源地址为 [//localhost/images/emoji/google/grin.png?v=9。它们应该使用我的服务器](https://localhost/images/emoji/google/grin.png?v=9%E3%80%82%E5%AE%83%E4%BB%AC%E5%BA%94%E8%AF%A5%E4%BD%BF%E7%94%A8%E6%88%91%E7%9A%84%E6%9C%8D%E5%8A%A1%E5%99%A8) URL，而不是 localhost。我已在设置中启用了表情符号功能。我该怎么办？

那么，我该如何将图片源指向当前 URL，而不是 localhost？

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2019年七月18日 07:33 UTC](https://meta.discourse.org/t/emojis-in-comments/123260/2 "2019-07-18T07:33:59Z")

</div>

问题可能出在你尚未在 `/config/site_settings.yml` 中设置以下内容：

```plaintext
developer:
  force_hostname:
    hidden: false
    default: "===MY-IP==="
  port:
    hidden: false
    default: "==MY-PORT=="

```

---

<div class="post-metadata">

### Author: ![Vishal\_Kaushik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vishal_kaushik/32/140452_2.png) [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)
#### Post date: [2019年七月18日 07:39 UTC](https://meta.discourse.org/t/emojis-in-comments/123260/3 "2019-07-18T07:39:32Z")

</div>

非常感谢，成功了。😄
