# 屏蔽表情符号不会起作用

**URL:** <https://meta.discourse.org/t/blocking-emojis-wont-work/105853>\
**Category:** Feature\
**Created:** [2019年一月7日 02:19 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853 "2019-01-07T02:19:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)\
**Post date:** [2019年一月7日 02:19 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853/1 "2019-01-07T02:19:14Z")

</div>

To avoid some problems, I blocked the middle finger emoji. Then, I went to my test account which does not have admin or moderator and is TL2. I used the emoji in a PM to my normal account, and it didn’t block the emoji. Which is a problem.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年一月7日 02:40 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853/2 "2019-01-07T02:40:10Z")

</div>

There is a difference between blocking a unicode code point (character) and the spelled-out version `:fu:`

Not entirely sure which code paths would work here cc @sam but probably will come up again.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年一月7日 04:10 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853/6 "2019-01-07T04:10:33Z")

</div>

Yes I tried blocking both `:fu:` and the emoji version.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/5/f5686054f982df4abc8cd6bfc7311c0502c41f6a.png)

My sock puppet was able to post both times either as emoji codepoint or emoji.

There is some sort of bug here.

@techAPJ can you have a quick look at this.

---

<div class="post-metadata">

**Author:** ![Brandon\_Martus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brandon_martus/32/127631_2.png) [@Brandon\_Martus](https://meta.discourse.org/u/Brandon_Martus)\
**Post date:** [2019年二月13日 18:16 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853/8 "2019-02-13T18:16:05Z")

</div>

_bump_ +1 for this.

Running (now) 2 separate Discourse instances and would like to be able to block the FU emoji on both.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2019年二月14日 00:10 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853/9 "2019-02-14T00:10:21Z")

</div>

We have it on our list, we should get to it in the next 2-4 weeks.

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2019年二月15日 15:27 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853/10 "2019-02-15T15:27:36Z")

</div>

Blocking emoji now works, via:

[https://github.com/discourse/discourse/commit/99c6db21e632fd8731ff97f4122cc89a7c0e0257](https://github.com/discourse/discourse/commit/99c6db21e632fd8731ff97f4122cc89a7c0e0257)

Both `:fu:` and the unicode emoji can be blocked.

---

<div class="post-metadata">

**Author:** ![Brandon\_Martus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/brandon_martus/32/127631_2.png) [@Brandon\_Martus](https://meta.discourse.org/u/Brandon_Martus)\
**Post date:** [2019年二月19日 14:35 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853/11 "2019-02-19T14:35:49Z")

</div>

Updated the sites last night and wasn’t able to get this to work. At first, I thought it was maybe because regex for watched words wasn’t enabled, but ticking that didn’t help either.

The word is `:fu :` (without the space .. had to add that to bypass meta censor) and is under Censored Words. I also tried under Required Approval, and that didn’t work either.

Do I need to do anything else to get this to work?

Current Version: [v2.3.0.beta2 +115](https://github.com/discourse/discourse/compare/86a2172bda45953e73b2bffc535c45feeb859eb6...tests-passed)

---

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [2019年二月19日 15:35 UTC](https://meta.discourse.org/t/blocking-emojis-wont-work/105853/13 "2019-02-19T15:35:18Z")

</div>

I implemented the “block emoji” feature which performs the check server side and blocks the word from being posted. I’ll look into implementing the same for Censor, Require Approval & Flag as well.
