-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix recent photo comments #876
base: staging
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what an interesting implementation oversight, haha
I trust the resulting implementation after the fix
@wilco375 I don't think you need api changes; is it not possible to compute a list of photos and then run an operation of uniqueness over it? like a set or something like that |
Not if we want to get a fixed number of photos. Or we'd have to recursively get more photos from the backend until we have enough non-duplicate photos. But that would be nicer and more efficient to solve in a database query. Either we get the photos directly and sort on date of latest comment => needs API addition of sorting by latest comment |
Right. I suppose the |
@wilco375 bump |
Will look at it later. Currently busy with moving to another apartment so don't have much free time |
Summary
Fixes #874