mirror of
https://github.com/iv-org/invidious.git
synced 2026-08-17 05:20:51 -05:00
fix(comments): render custom channel emojis in comments and descriptions (closes #5888)
This commit is contained in:
parent
eb407578a2
commit
b313d2cf71
@ -63,7 +63,6 @@ def content_to_comment_html(content, video_id : String? = "")
|
|||||||
|
|
||||||
# check for custom emojis
|
# check for custom emojis
|
||||||
if run["emoji"]?
|
if run["emoji"]?
|
||||||
if run["emoji"]["isCustomEmoji"]?.try &.as_bool
|
|
||||||
if emoji_image = run.dig?("emoji", "image")
|
if emoji_image = run.dig?("emoji", "image")
|
||||||
emoji_alt = emoji_image.dig?("accessibility", "accessibilityData", "label").try &.as_s || text
|
emoji_alt = emoji_image.dig?("accessibility", "accessibilityData", "label").try &.as_s || text
|
||||||
emoji_thumb = emoji_image["thumbnails"][0]
|
emoji_thumb = emoji_image["thumbnails"][0]
|
||||||
@ -80,7 +79,6 @@ def content_to_comment_html(content, video_id : String? = "")
|
|||||||
text = ""
|
text = ""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
text
|
text
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user