summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-04-24 17:32:01 +0200
committerGitHub <noreply@github.com>2022-04-24 17:32:01 +0200
commitd4acd0369849e339840c8c94c918f9e6e69b0fd0 (patch)
tree6e868dd070cdfbca17d0f61b54adb661a0180660 /src
parent2ea986326d1a64c294025b79088032f3c77e8320 (diff)
parentda53de209758a037d47fec97c266ed0fb8f7eabe (diff)
downloadinvidious-d4acd0369849e339840c8c94c918f9e6e69b0fd0.tar.gz
invidious-d4acd0369849e339840c8c94c918f9e6e69b0fd0.tar.bz2
invidious-d4acd0369849e339840c8c94c918f9e6e69b0fd0.zip
Merge pull request #3044 from MathiusD/base-time-code-lost
Fix regression related of timestamp 0:00
Diffstat (limited to 'src')
-rw-r--r--src/invidious/comments.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr
index 002983ee..c6e7fd17 100644
--- a/src/invidious/comments.cr
+++ b/src/invidious/comments.cr
@@ -596,7 +596,7 @@ def content_to_comment_html(content)
length_seconds = watch_endpoint["startTimeSeconds"]?
video_id = watch_endpoint["videoId"].as_s
- if length_seconds && length_seconds.as_i > 0
+ if length_seconds && length_seconds.as_i >= 0
text = %(<a href="javascript:void(0)" data-onclick="jump_to_time" data-jump-time="#{length_seconds}">#{text}</a>)
else
text = %(<a href="/watch?v=#{video_id}">#{"youtube.com/watch?v=#{video_id}"}</a>)