diff options
| author | chunky programmer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2023-05-14 15:20:59 -0400 |
|---|---|---|
| committer | chunky programmer <78101139+ChunkyProgrammer@users.noreply.github.com> | 2023-05-14 15:58:15 -0400 |
| commit | d7285992517c98a276e325f83e1b7584dac3c498 (patch) | |
| tree | 15e19ab066cdf211d5003c699ab729aad6375fae /src | |
| parent | d6fb5c03b72b40bf7bd71f8023c71c76ea41f53d (diff) | |
| download | invidious-d7285992517c98a276e325f83e1b7584dac3c498.tar.gz invidious-d7285992517c98a276e325f83e1b7584dac3c498.tar.bz2 invidious-d7285992517c98a276e325f83e1b7584dac3c498.zip | |
add page parameter
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/routes/api/v1/search.cr | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/invidious/routes/api/v1/search.cr b/src/invidious/routes/api/v1/search.cr index 0bf74bc3..9fb283c2 100644 --- a/src/invidious/routes/api/v1/search.cr +++ b/src/invidious/routes/api/v1/search.cr @@ -59,10 +59,8 @@ module Invidious::Routes::API::V1::Search def self.hashtag(env) hashtag = env.params.url["hashtag"] - # page does not change anything. - # page = env.params.query["page"]?.try &.to_i?|| 1 + page = env.params.query["page"]?.try &.to_i? || 1 - page = 1 locale = env.get("preferences").as(Preferences).locale region = env.params.query["region"]? env.response.content_type = "application/json" |
