mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add support for empty continuation parameter
This commit is contained in:
parent
e190624eb0
commit
25fc79974c
1 changed files with 1 additions and 1 deletions
|
@ -1705,7 +1705,7 @@ get "/api/v1/comments/:id" do |env|
|
||||||
ctoken = ctoken["ctoken"]
|
ctoken = ctoken["ctoken"]
|
||||||
itct = body.match(/itct=(?<itct>[^"]+)"/).not_nil!["itct"]
|
itct = body.match(/itct=(?<itct>[^"]+)"/).not_nil!["itct"]
|
||||||
|
|
||||||
if env.params.query["continuation"]?
|
if env.params.query["continuation"]? && !env.params.query["continuation"].empty?
|
||||||
continuation = env.params.query["continuation"]
|
continuation = env.params.query["continuation"]
|
||||||
ctoken = continuation
|
ctoken = continuation
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue