# Remove Name Suppression on Posts

**URL:** https://meta.discourse.org/t/remove-name-suppression-on-posts/86265
**Category:** Theme component
**Tags:** official, remove-name-suppression
**Created:** [April 27, 2018, 1:48am UTC](https://meta.discourse.org/t/remove-name-suppression-on-posts/86265 "2018-04-27T01:48:59Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Discourse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/discourse/32/148734_2.png) [@Discourse](https://meta.discourse.org/u/Discourse)
#### Post date: [April 27, 2018, 1:48am UTC](https://meta.discourse.org/t/remove-name-suppression-on-posts/86265/1 "2018-04-27T01:48:59Z")

</div>

| | | |
| --- | --- | --- |
| :discourse2: | **Summary** | **Remove Name Suppression on Posts** disables the suppression of similar name / usernames on posts. |
| :eyeglasses: | **Preview** | [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/remove-name-suppression) |
| :hammer_and_wrench: | **Repository Link** | [https://github.com/discourse/remove-name-suppression-on-posts](https://github.com/discourse/remove-name-suppression-on-posts) |
| :open_book: | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

> [@](#):
>
> :discourse2: As this is an #official theme component maintained by the Discourse team, #Support, #Contribute > Bug, #Contribute > UX, and #Contribute > Feature requests can be made in the respective categories here on Meta, and tagged with the appropriate theme component tag. Click on a link below to get one started. :+1:
> 
> [:question:&nbsp; **Support**](https://meta.discourse.org/new-topic?category_id=6&tags=remove-name-suppression "Ask for support on configuring and using Remove Name Suppression on Posts") [:bug:&nbsp; **Bug**](https://meta.discourse.org/new-topic?category_id=1&tags=remove-name-suppression "A bug report means something is broken, preventing normal/typical use of the theme component") [:eyes:&nbsp; **UX**](https://meta.discourse.org/new-topic?category_id=9&tags=remove-name-suppression "Discussion about the user interface of Remove Name Suppression on Posts, and how features are presented (including language and UI elements)") [:bulb:&nbsp; **Feature**](https://meta.discourse.org/new-topic?category_id=2&tags=remove-name-suppression "Discussion about how existing Remove Name Suppression on Posts features can be improved or enhanced, and how proposed new features could work")

### Features

This tiny tiny theme component only adds:

```plaintext
<script type="text/discourse-plugin" version="0.8.18">
  api.disableNameSuppressionOnPosts();
</script>

```

To your `<HEAD>` tag will disable the suppression of similar name / usernames on posts.

Before:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/0/f028982bd09c50a045b7ecfb8f1ed5016790c3c3.jpg)

After:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/9/49721d47165674ff97ba9329e9a1231b7dbe7097.jpg)

  

> :discourse2: **Hosted by us?** Theme components are available to use on our Standard, Business, and Enterprise plans.

> Last edited by @JammyDodger 2024-06-14T00:11:31Z
> 
> > **Check document**
> >
> > Perform check on document:

---

<div class="post-metadata">

### Author: ![ggurbet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ggurbet/32/120188_2.png) [@ggurbet](https://meta.discourse.org/u/ggurbet)
#### Post date: [March 8, 2021, 6:21pm UTC](https://meta.discourse.org/t/remove-name-suppression-on-posts/86265/2 "2021-03-08T18:21:39Z")

</div>

I know this is a bit old but just to give a heads up, this does not seem to work anymore. Looked at the code of the core suppression feature but I am not sure about the mechanics here:

> [@/app/assets/javascripts/discourse/app/lib/plugin-api.js](#):
>
> ```js
> disableNameSuppressionOnPosts() {
> disableNameSuppression();
> }
> 
> ```

> [@/app/assets/javascripts/discourse/app/widgets/poster-name.js](#):
>
> ```js
> let sanitizeName = function (name) {
> return name.toLowerCase().replace(/[\s\._-]/g, "");
> };
> 
> export function disableNameSuppression() {
> sanitizeName = (name) => name;
> }
> 
> ```

Also, by default it is installed as a theme instead of a component. Do you have any ideas?

---

<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: [March 8, 2021, 7:08pm UTC](https://meta.discourse.org/t/remove-name-suppression-on-posts/86265/3 "2021-03-08T19:08:06Z")

</div>

It still works for me:

 ![Screen Shot 2021-03-08 at 2.02.14 PM](https://global.discourse-cdn.com/meta/original/3X/3/7/375a3b390d179801c9f892750c37b67817d2b256.png)

is the site setting ` enable names` enabled? If you inspect the page, do you see any console errors?

I set `component: true` so it should install as a component now.

---

<div class="post-metadata">

### Author: ![ggurbet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ggurbet/32/120188_2.png) [@ggurbet](https://meta.discourse.org/u/ggurbet)
#### Post date: [March 8, 2021, 7:43pm UTC](https://meta.discourse.org/t/remove-name-suppression-on-posts/86265/4 "2021-03-08T19:43:38Z")

</div>

Thank you for the component chage.

I have the `enable names` setting enabled. There are some errors in Chrome dev console like this:

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/b/db2405a668b71d9228044ddce2329fde279fc3f1.png)

---

<div class="post-metadata">

### Author: ![ggurbet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ggurbet/32/120188_2.png) [@ggurbet](https://meta.discourse.org/u/ggurbet)
#### Post date: [March 22, 2021, 10:02am UTC](https://meta.discourse.org/t/remove-name-suppression-on-posts/86265/5 "2021-03-22T10:02:00Z")

</div>

I have manually added the code given by Sam to the header and tried disabling then enabling the “enable names” setting but it still does not work for me when the username and the name of the user are the same.
