Skip to content

Invidious is an alternative front-end to YouTube

Updated comment link returns

lamemakes7a569d81ca08
diff --git a/src/invidious/helpers/utils.cr b/src/invidious/helpers/utils.cr
index 48bf769f..a006d602 100644
--- a/src/invidious/helpers/utils.cr
+++ b/src/invidious/helpers/utils.cr
@@ -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