fix(comments): render custom channel emojis in comments and descriptions (closes #5888)

This commit is contained in:
Test User 2026-08-08 14:46:33 -04:00
parent eb407578a2
commit b313d2cf71

View File

@ -63,7 +63,6 @@ def content_to_comment_html(content, video_id : String? = "")
# check for custom emojis
if run["emoji"]?
if run["emoji"]["isCustomEmoji"]?.try &.as_bool
if emoji_image = run.dig?("emoji", "image")
emoji_alt = emoji_image.dig?("accessibility", "accessibilityData", "label").try &.as_s || text
emoji_thumb = emoji_image["thumbnails"][0]
@ -80,7 +79,6 @@ def content_to_comment_html(content, video_id : String? = "")
text = ""
end
end
end
text
end