We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21bd4ed commit 3702e8cCopy full SHA for 3702e8c
src/invidious/comments.cr
@@ -602,7 +602,13 @@ def content_to_comment_html(content)
602
text = %(<a href="/watch?v=#{video_id}">#{"youtube.com/watch?v=#{video_id}"}</a>)
603
end
604
elsif url = run.dig?("navigationEndpoint", "commandMetadata", "webCommandMetadata", "url").try &.as_s
605
- text = %(<a href="#{url}">#{reduce_uri(url)}</a>)
+ if text.starts_with?(/\s?@/)
606
+ # Handle "pings" in comments differently
607
+ # See: https://github.com/iv-org/invidious/issues/3038
608
+ text = %(<a href="#{url}">#{text}</a>)
609
+ else
610
+ text = %(<a href="#{url}">#{reduce_uri(url)}</a>)
611
+ end
612
613
614
0 commit comments