mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-22 16:19:53 +05:30
add spaces at end of attribute
This commit is contained in:
parent
bc5d81fe60
commit
b5eb6016bb
@ -336,10 +336,10 @@ def template_youtube_comments(comments, locale, thin_mode, is_replies = false)
|
|||||||
end
|
end
|
||||||
if child["isSponsor"].as_bool
|
if child["isSponsor"].as_bool
|
||||||
sponsor_icon = String.build do |str|
|
sponsor_icon = String.build do |str|
|
||||||
str << %(<img alt="")
|
str << %(<img alt="" )
|
||||||
str << %(src="/ggpht) << URI.parse(child["sponsorIconUrl"].as_s).request_target << '"'
|
str << %(src="/ggpht) << URI.parse(child["sponsorIconUrl"].as_s).request_target << "\" "
|
||||||
str << %(title=") << translate(locale, "Channel Sponsor") << '"'
|
str << %(title=") << translate(locale, "Channel Sponsor") << "\" "
|
||||||
str << %(width="16" height="16"/>)
|
str << %(width="16" height="16" />)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
html << <<-END_HTML
|
html << <<-END_HTML
|
||||||
@ -696,12 +696,12 @@ def content_to_comment_html(content, video_id : String? = "")
|
|||||||
emojiAlt = emojiImage.dig?("accessibility", "accessibilityData", "label").try &.as_s || text
|
emojiAlt = emojiImage.dig?("accessibility", "accessibilityData", "label").try &.as_s || text
|
||||||
emojiThumb = emojiImage["thumbnails"][0]
|
emojiThumb = emojiImage["thumbnails"][0]
|
||||||
text = String.build do |str|
|
text = String.build do |str|
|
||||||
str << %(<img alt=") << emojiAlt << '"'
|
str << %(<img alt=") << emojiAlt << "\" "
|
||||||
str << %(src="/ggpht) << URI.parse(emojiThumb["url"].as_s).request_target << '"'
|
str << %(src="/ggpht) << URI.parse(emojiThumb["url"].as_s).request_target << "\" "
|
||||||
str << %(title=") << emojiAlt << '"'
|
str << %(title=") << emojiAlt << "\" "
|
||||||
str << %(width=") << emojiThumb["width"] << '"'
|
str << %(width=") << emojiThumb["width"] << "\" "
|
||||||
str << %(height=") << emojiThumb["height"] << '"'
|
str << %(height=") << emojiThumb["height"] << "\" "
|
||||||
str << %( style="margin-right:2px;margin-left:2px;"/>)
|
str << %(style="margin-right:2px;margin-left:2px;"/>)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
# Hide deleted channel emoji
|
# Hide deleted channel emoji
|
||||||
|
Loading…
Reference in New Issue
Block a user