this post was submitted on 13 Jul 2023
44 points (95.8% liked)
Memmy - An iOS client for Lemmy
2536 readers
1 users here now
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
No we can’t really do it. What if someone scrolls really fast, then we have to mark like let’s say 20 posts as read. Each mark as read is a separate API call. We can’t make a call with all the posts, the lemmy API isn’t that advanced. If we tried to make that many api calls it would get rate limited and you’d get errors from the backend.
Ah. Would the lemmy api need something like mark this list of posts (in a single call) as read to do this?
Edit: I see the api has things like getComment and getComments.
So something like markPostsAsRead instead of just markPostAsRead so you can send a list.
Yep exactly, it would need to offer us an option to send a list of post ids at once to mark as read.
what about adding a button to mark a post as read? i would find that more convenient than needing to open each post in order to mark it as read.
I believe we’re looking into adding a swipe to mark as read feature for feed items.