mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Rename param
This commit is contained in:
parent
58f66761fb
commit
3a84359e7d
1 changed files with 2 additions and 2 deletions
|
@ -153,8 +153,8 @@ module Invidious::Routes::API::V1::Authenticated
|
|||
env.response.content_type = "application/json"
|
||||
user = env.get("user").as(User)
|
||||
|
||||
sorted = env.params.query["sorted"]?.try &.== "true"
|
||||
if sorted
|
||||
sort = env.params.query["sort"]?.try &.== "last"
|
||||
if sort
|
||||
subscriptions = Invidious::Database::Channels.select_sorted(user.subscriptions)
|
||||
else
|
||||
subscriptions = Invidious::Database::Channels.select(user.subscriptions)
|
||||
|
|
Loading…
Reference in a new issue