Remove Name Suppression on Posts

AI-generated summary

The discussion revolves around the “Remove Name Suppression on Posts” theme component, which disables the suppression of similar usernames and names on posts. The component adds a script to the <HEAD> tag to achieve this.

However, ggurbet reported that the component no longer works, despite enabling the “enable names” setting. awesomerobot suggested checking for console errors and confirmed that the component still works for them. ggurbet found some errors in the Chrome dev console but was still unable to get the component to work. ggurbet even tried manually adding the code to the header, but the issue persisted when the username and name of the user are the same.

:discourse2: Summary Remove Name Suppression on Posts disables the suppression of similar name / usernames on posts.
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/remove-name-suppression-on-posts
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme component

Features

This tiny tiny theme component only adds:

<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:

After:


: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 documentPerform check on document:
16 Likes

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:

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

It still works for me:

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.

2 Likes

Thank you for the component chage.

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

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.