Skip to content

Return saved date when fetching saved contentΒ #5184

Open
@EricBAndrews

Description

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?

Saved items are currently returned in the order in which they were saved, which is the intuitive behavior; however, the actual save date does not appear to be included in the response. This, combined with the fact that posts and comments are returned in two separate, sorted arrays, makes it impossible to generate a correctly sorted feed of posts and comments sorted by saved date.

Describe the solution you'd like.

Add a field to the response object containing the date the post/comment was saved.

Describe alternatives you've considered.

  1. Display saved posts and comments in separate feeds. This is bad UX, as it is both inconsistent with the web UI and awkward to navigate
  2. Sort using the post publication date as a rough proxy of save date. This only works as long as the user is saving posts from hot/new; posts saved from, e.g., sorting a community by top all time will be buried in the saved feed
  3. Combine each page of posts and comments (as lemmy-ui currently does). This produces similar sorting issues to the above point, where if a user saves posts more frequently than comments (or vice versa) then very old saved comments will be displayed before more recently saved posts.

Additional context

No response

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions