Skip to content
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

API endpoint for listing read posts #4934

Open
5 tasks done
K4LCIFER opened this issue Aug 1, 2024 · 2 comments
Open
5 tasks done

API endpoint for listing read posts #4934

K4LCIFER opened this issue Aug 1, 2024 · 2 comments
Labels
area: api enhancement New feature or request extra: good first issue Good for newcomers

Comments

@K4LCIFER
Copy link

K4LCIFER commented Aug 1, 2024

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

Currently, if one only looks at a post and doesn't save it, it's difficult to locate that post in the future unless one has the title of the post to search, or specific keywords that can help find it.

Describe the solution you'd like.

A solution to this would be to record a history of posts that a user has interacted with. Interactions could be opening the post, opening an image, commenting, voting, etc.

Describe alternatives you've considered.

None.

Additional context

There may be some privacy issues associated with recording user activity history.

@K4LCIFER K4LCIFER added the enhancement New feature or request label Aug 1, 2024
@Sjmarf
Copy link

Sjmarf commented Aug 10, 2024

The API provides a way to see a history of upvoted posts, though afaik lemmy-ui doesn't implement this. A history of which posts you've recently opened would be nice too.

@Nutomic Nutomic changed the title Record user activity history API endpoint for listing read posts Sep 25, 2024
@Nutomic
Copy link
Member

Nutomic commented Sep 25, 2024

We already store the posts that were marked as read by a user. To resolve this we need to add a new field GetPosts.read_only, similar to the existing fields saved_only or liked_only. Pretty simple to implement really.

@Nutomic Nutomic added the extra: good first issue Good for newcomers label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api enhancement New feature or request extra: good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants