Invidious is an alternative front-end to YouTube
Remove timestamp fallback for nojs
Omar Rothfff817b654aa
diff --git a/src/invidious/comments.cr b/src/invidious/comments.crindex 5f7b34c0..372e58ed 100644--- a/src/invidious/comments.cr+++ b/src/invidious/comments.cr@@ -507,7 +507,7 @@ def content_to_comment_html(content)length_seconds = watch_endpoint["startTimeSeconds"].as_ivideo_id = watch_endpoint["videoId"].as_s- text = %(<a onmouseenter='this["href"]="javascript:void();"' onclick="player.currentTime(#{length_seconds})" href="/watch?v=#{video_id}&t=#{length_seconds}">#{text}</a>)+ text = %(<a href="javascript:void();" onclick="player.currentTime(#{length_seconds})">#{text}</a>)elsif url = run["navigationEndpoint"]["commandMetadata"]?.try &.["webCommandMetadata"]["url"].as_stext = %(<a href="#{url}">#{text}</a>)end