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

Add the timestamp of when a user liked a post to app.bsky.feed.getActorLikes #3342

Open
hyfen opened this issue Jan 9, 2025 · 3 comments
Open

Comments

@hyfen
Copy link

hyfen commented Jan 9, 2025

Is your feature request related to a problem? Please describe.

Right now, the only timestamp in the response is the liked post's createdAt value. It would be great to also include the timestamp of when the user liked the post.

Describe the solution you'd like

Add the createdAt value of the app.bsky.feed.like record to the API response.

Poking around quickly, I think this means:

  1. Including the value in the return value of the query in like.ts
  2. Updating the skeleton in getActorLikes.ts to include the value in the response

Describe alternatives you've considered

The endpoint returns the app.bsky.feed.like record uri and we can get its details with com.atproto.repo.getRecord. This includes the createdAt but if we want to build a timeline of likes with timestamps, this would necessitate a lot of extra queries.

Additional context

Not having timestamps of favs (or even reasonable sorting/pagination of the list) is a glaring problem in the equivalent twitter endpoint. The like event timestamp exists so it would be great if it were more accessible!

@hyfen
Copy link
Author

hyfen commented Jan 9, 2025

Looks like #1592 improved the sorting but of the endpoint but didn't add the value to response.

@tunjid
Copy link

tunjid commented Jan 14, 2025

It seems this also happens to a few responses that return a list of profile views

@hyfen
Copy link
Author

hyfen commented Jan 14, 2025

Yes, I've noticed that too with app.bsky.graph.getFollows and app.bsky.graph.getFollowers. The actual timestamp of the follow event is available with com.atproto.repo.getRecord. Would be great if the event timestamps were included in the viewer object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants