diff --git a/app/assets/javascripts/discourse/models/topic.js.es6 b/app/assets/javascripts/discourse/models/topic.js.es6 index 189db87207e..60b40fe63cf 100644 --- a/app/assets/javascripts/discourse/models/topic.js.es6 +++ b/app/assets/javascripts/discourse/models/topic.js.es6 @@ -9,7 +9,7 @@ const Topic = RestModel.extend({ let title = this.get("fancy_title"); if (Discourse.SiteSettings.enable_emoji && title.indexOf(":") >= 0) { - title = title.replace(/:\S+:?/, function(m) { + title = title.replace(/:\S+:?/g, function(m) { const emoji = Discourse.Emoji.translations[m] ? Discourse.Emoji.translations[m] : m.slice(1, m.length - 1), url = Discourse.Emoji.urlFor(emoji); return url ? "" + emoji + "" : m;