mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix missing 'end'
This commit is contained in:
parent
1eae76fc15
commit
aff2083529
1 changed files with 5 additions and 4 deletions
|
@ -1912,7 +1912,7 @@ get "/api/v1/comments/:id" do |env|
|
||||||
url = URI.parse(url)
|
url = URI.parse(url)
|
||||||
|
|
||||||
if url.path == "/redirect"
|
if url.path == "/redirect"
|
||||||
url = HTTP::Params.parse(url.query.not_nil!)["q"]
|
url = HTTP::Params.parse(url.query.not_nil!)["q"]
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
url = run["navigationEndpoint"]["commandMetadata"]?.try &.["webCommandMetadata"]["url"].as_s
|
url = run["navigationEndpoint"]["commandMetadata"]?.try &.["webCommandMetadata"]["url"].as_s
|
||||||
|
@ -2036,9 +2036,10 @@ get "/api/v1/comments/:id" do |env|
|
||||||
else
|
else
|
||||||
next {
|
next {
|
||||||
"title" => reddit_thread.title,
|
"title" => reddit_thread.title,
|
||||||
"permalink" => reddit_thread.permalink,
|
"permalink" => reddit_thread.permalink,
|
||||||
"contentHtml" => content_html,
|
"contentHtml" => content_html,
|
||||||
}.to_json
|
}.to_json
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue