Skip to content

Commit d4acd03

Browse files
authored
Merge pull request #3044 from MathiusD/base-time-code-lost
Fix regression related of timestamp 0:00
2 parents 2ea9863 + da53de2 commit d4acd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/invidious/comments.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def content_to_comment_html(content)
596596
length_seconds = watch_endpoint["startTimeSeconds"]?
597597
video_id = watch_endpoint["videoId"].as_s
598598

599-
if length_seconds && length_seconds.as_i > 0
599+
if length_seconds && length_seconds.as_i >= 0
600600
text = %(<a href="javascript:void(0)" data-onclick="jump_to_time" data-jump-time="#{length_seconds}">#{text}</a>)
601601
else
602602
text = %(<a href="/watch?v=#{video_id}">#{"youtube.com/watch?v=#{video_id}"}</a>)

0 commit comments

Comments
 (0)