Skip to content

A platform for community discussion. Free, open, simple.

FIX: Don't display the `@mention` message if disabled

Robin Ward891f0cfe5247
diff --git a/app/assets/javascripts/discourse/templates/preferences/account.hbs b/app/assets/javascripts/discourse/templates/preferences/account.hbs
index cded185e598..fde2bd55bfd 100644
--- a/app/assets/javascripts/discourse/templates/preferences/account.hbs
+++ b/app/assets/javascripts/discourse/templates/preferences/account.hbs
@@ -7,9 +7,11 @@
{{d-icon "pencil"}} {{/link-to}}
{{/if}}
</div>
- <div class='instructions'>
- {{{i18n 'user.username.short_instructions' username=model.username}}}
- </div>
+ {{#if siteSettings.enable_mentions}}
+ <div class='instructions'>
+ {{{i18n 'user.username.short_instructions' username=model.username}}}
+ </div>
+ {{/if}}
</div>
{{#if canEditName}}