mirror of https://github.com/iv-org/invidious.git
Remove useless call
Follow this comment : https://github.com/iv-org/invidious/pull/2936#discussion_r841277735
This commit is contained in:
parent
19805b91d9
commit
68ac18dc98
|
@ -599,7 +599,7 @@ def content_to_comment_html(content)
|
||||||
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>)
|
text = %(<a href="javascript:void(0)" data-onclick="jump_to_time" data-jump-time="#{length_seconds}">#{text}</a>)
|
||||||
else
|
else
|
||||||
text = %(<a href="/watch?v=#{video_id}">#{reduce_uri("youtube.com/watch?v=#{video_id}")}</a>)
|
text = %(<a href="/watch?v=#{video_id}">#{"youtube.com/watch?v=#{video_id}"}</a>)
|
||||||
end
|
end
|
||||||
elsif url = run.dig?("navigationEndpoint", "commandMetadata", "webCommandMetadata", "url").try &.as_s
|
elsif url = run.dig?("navigationEndpoint", "commandMetadata", "webCommandMetadata", "url").try &.as_s
|
||||||
text = %(<a href="#{url}">#{reduce_uri(url)}</a>)
|
text = %(<a href="#{url}">#{reduce_uri(url)}</a>)
|
||||||
|
|
Loading…
Reference in New Issue