Skip to content

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

FIX: Avoid double-encoding featured topic title in user profile (#20740)

Jordan Vidrine5238e9637769
diff --git a/app/assets/javascripts/discourse/app/templates/preferences/profile.hbs b/app/assets/javascripts/discourse/app/templates/preferences/profile.hbs
index 2cdaf585645..8d4021793fd 100644
--- a/app/assets/javascripts/discourse/app/templates/preferences/profile.hbs
+++ b/app/assets/javascripts/discourse/app/templates/preferences/profile.hbs
@@ -110,7 +110,7 @@
this.model.featured_topic.id
}}
>
- {{html-safe (replace-emoji this.model.featured_topic.fancy_title)}}
+ {{replace-emoji (html-safe this.model.featured_topic.fancy_title)}}
</LinkTo>
</label>
{{/if}}