mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Fix 'order' expression
This commit is contained in:
parent
d6d73bd336
commit
588f9b9bd6
1 changed files with 1 additions and 1 deletions
|
@ -1680,7 +1680,7 @@ get "/feed/subscriptions" do |env|
|
|||
user.watched, as: ChannelVideo)
|
||||
else
|
||||
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} \
|
||||
ORDER BY published, ucid #{sort}", as: ChannelVideo)
|
||||
ORDER BY ucid, published #{sort}", as: ChannelVideo)
|
||||
end
|
||||
|
||||
videos.sort_by! { |video| video.published }.reverse!
|
||||
|
|
Loading…
Reference in a new issue