Comments: Fix display of youtube links (#3911)

This commit is contained in:
Samantaz Fox 2023-06-12 21:04:57 +02:00
commit df6b51f9c6
No known key found for this signature in database
GPG key ID: F42821059186176E

View file

@ -440,7 +440,7 @@ def parse_link_endpoint(endpoint : JSON::Any, text : String, video_id : String)
# - https://github.com/iv-org/invidious/issues/3062
text = %(<a href="#{url}">#{text}</a>)
else
text = %(<a href="#{url}">#{reduce_uri(url)}</a>)
text = %(<a href="#{url}">#{reduce_uri(text)}</a>)
end
end
return text