From 879586d7f5a42c754c4d373849d12d60d4869ca2 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 17 Nov 2018 13:37:27 -0600 Subject: [PATCH] Fix subscription feed for latest unseen videos --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 37bb6d43..7cb1cfe4 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -1620,7 +1620,7 @@ get "/feed/subscriptions" do |env| end videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} WHERE \ - id NOT IN (#{watched}) ORDER BY published, ucid #{sort}", + id NOT IN (#{watched}) ORDER BY ucid, published #{sort}", user.watched, as: ChannelVideo) else videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} \