diff --git a/src/invidious/comments/content.cr b/src/invidious/comments/content.cr index 1f55bfe6..ed550afe 100644 --- a/src/invidious/comments/content.cr +++ b/src/invidious/comments/content.cr @@ -63,22 +63,20 @@ 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] - text = String.build do |str| - str << %() << emoji_alt << ) - end - else - # Hide deleted channel emoji - text = "" + 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] + text = String.build do |str| + str << %() << emoji_alt << ) end + else + # Hide deleted channel emoji + text = "" end end