mirror of https://github.com/iv-org/invidious.git
Rename param
This commit is contained in:
parent
58f66761fb
commit
3a84359e7d
|
@ -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 New Issue