mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: correctly render unicode in channel page title (#29653)
Before this fix we would render the emoji as text, eg: `🐱`
This commit is contained in:
@ -11,6 +11,7 @@ module Chat
|
||||
:chatable_url,
|
||||
:description,
|
||||
:title,
|
||||
:unicode_title,
|
||||
:slug,
|
||||
:status,
|
||||
:archive_failed,
|
||||
@ -53,6 +54,10 @@ module Chat
|
||||
object.name || object.title(scope.user)
|
||||
end
|
||||
|
||||
def unicode_title
|
||||
Emoji.gsub_emoji_to_unicode(title)
|
||||
end
|
||||
|
||||
def chatable
|
||||
case object.chatable_type
|
||||
when "Category"
|
||||
|
Reference in New Issue
Block a user