diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-09-06 18:18:36 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-09-06 18:18:36 -0500 |
| commit | aff2083529d2bb52cc97c958f30be2bcdd5b7eb9 (patch) | |
| tree | 5b002e62135645e7e5c434c4696d84a72aee13cb | |
| parent | 1eae76fc157b0d19603a5c9f57b813b6c15eb997 (diff) | |
| download | invidious-aff2083529d2bb52cc97c958f30be2bcdd5b7eb9.tar.gz invidious-aff2083529d2bb52cc97c958f30be2bcdd5b7eb9.tar.bz2 invidious-aff2083529d2bb52cc97c958f30be2bcdd5b7eb9.zip | |
Fix missing 'end'
| -rw-r--r-- | src/invidious.cr | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index 58525f26..68a38366 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1912,7 +1912,7 @@ get "/api/v1/comments/:id" do |env| url = URI.parse(url) if url.path == "/redirect" - url = HTTP::Params.parse(url.query.not_nil!)["q"] + url = HTTP::Params.parse(url.query.not_nil!)["q"] end else url = run["navigationEndpoint"]["commandMetadata"]?.try &.["webCommandMetadata"]["url"].as_s @@ -2036,9 +2036,10 @@ get "/api/v1/comments/:id" do |env| else next { "title" => reddit_thread.title, - "permalink" => reddit_thread.permalink, - "contentHtml" => content_html, - }.to_json + "permalink" => reddit_thread.permalink, + "contentHtml" => content_html, + }.to_json + end end end |
