mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix subscription feed for latest unseen videos
This commit is contained in:
parent
cd482cfd89
commit
879586d7f5
1 changed files with 1 additions and 1 deletions
|
@ -1620,7 +1620,7 @@ get "/feed/subscriptions" do |env|
|
||||||
end
|
end
|
||||||
|
|
||||||
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} WHERE \
|
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)
|
user.watched, as: ChannelVideo)
|
||||||
else
|
else
|
||||||
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} \
|
videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} \
|
||||||
|
|
Loading…
Reference in a new issue