LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.25k stars 880 forks source link

Add a user setting to automatically mark fetched posts (`list_posts`) as read. #5144

Open dessalines opened 1 week ago

dessalines commented 1 week ago

Requirements

Is your proposal related to a problem?

Users want the ability automatically mark posts in their feed as read, without having to manually click into the post, or click a mark read button.

Currently, a few apps are doing this by collecting up ids, then when its scrolled to the bottom, send a list of post ids to the mark_read function. But #5043 takes this away, in exchange for returning the full post result.

At the same time, collecting up ids isn't the cleanest solution, and most apps probably don't want to code this. We also don't want to spam a lot of individual, or collected requests.

Describe the solution you'd like.

Add a user-setting to automatically mark fetched posts (the posts received back from list_posts, as read.

Pros

Cons

Describe alternatives you've considered.

NA

Additional context

https://github.com/LemmyNet/lemmy/pull/5043#discussion_r1802136108