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:
Joffrey JAFFEUX
2024-11-08 09:41:14 +09:00
committed by GitHub
parent 5a23a74bbc
commit 79254c59f9
5 changed files with 23 additions and 2 deletions

View File

@ -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"