mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 04:32:02 +00:00 
			
		
		
		
	Fix 'latest only' feed
This commit is contained in:
		| @@ -1419,7 +1419,8 @@ get "/feed/subscriptions" do |env| | ||||
|             id NOT IN (#{watched}) ORDER BY ucid, published DESC", | ||||
|             user.watched, as: ChannelVideo) | ||||
|         else | ||||
|           videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name}", as: ChannelVideo) | ||||
|           videos = PG_DB.query_all("SELECT DISTINCT ON (ucid) * FROM #{view_name} \ | ||||
|           ORDER BY ucid, published DESC", as: ChannelVideo) | ||||
|         end | ||||
|  | ||||
|         videos.sort_by! { |video| video.published }.reverse! | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Omar Roth
					Omar Roth