mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
add page parameter
This commit is contained in:
parent
d6fb5c03b7
commit
d728599251
1 changed files with 1 additions and 3 deletions
|
@ -59,10 +59,8 @@ module Invidious::Routes::API::V1::Search
|
||||||
def self.hashtag(env)
|
def self.hashtag(env)
|
||||||
hashtag = env.params.url["hashtag"]
|
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
|
locale = env.get("preferences").as(Preferences).locale
|
||||||
region = env.params.query["region"]?
|
region = env.params.query["region"]?
|
||||||
env.response.content_type = "application/json"
|
env.response.content_type = "application/json"
|
||||||
|
|
Loading…
Reference in a new issue