1ifeworld / river

Set information free.
https://river.ph
GNU Affero General Public License v3.0
25 stars 2 forks source link

logic on "recent channels" #560

Open ioeylim opened 6 months ago

ioeylim commented 6 months ago

when you upload and remove an item from a channel, should the channel be also removed from the top of the list?

0xTranqui commented 6 months ago

yea it should. we have to make the query + sort logic more sophisticated to support this. right now it looks up all channels and gets the most recent add from each, without looking if that add has been removed. since techicnally theres no way of knowing how many of the most "recent" adds per channel have been removed, we either need a higher constant (ex: 10 most recent adds instead of 1?) and then map through that, or go with a different approach which is just finding the most recent "Valid" add for a channel at time of the query

both of those need to be done with some level of max search limit to avoid really long loops