You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
no cursor (although I didn't test with a cursor, but the idea is fetching the latest post, so I don't think this will be particularly relevant)
...to app.bsky.feed.getAuthorFeed, and the last post the person made was deleted, it returns an empty feed (as if they had 0 posts) instead of their actual last available post.
To Reproduce
Steps to reproduce the behavior:
Make sure you have at least one post;
Post or Repost anything;
Undo the previous action;
Issue a request: {{your_pds}}/xrpc/app.bsky.feed.getAuthorFeed?actor={{your_did}}&filter=posts_and_author_threads&limit=1
Expected behavior
One would expect the XRPC to return an array containing the last available post.
Additional context
I'm not sure because haven't read much of this codebase, but I think it might be related to this:
The field nullsLast is undefined by default...
Describe the bug
If you pass the query filters...
...to
app.bsky.feed.getAuthorFeed
, and the last post the person made was deleted, it returns an empty feed (as if they had 0 posts) instead of their actual last available post.To Reproduce
Steps to reproduce the behavior:
{{your_pds}}/xrpc/app.bsky.feed.getAuthorFeed?actor={{your_did}}&filter=posts_and_author_threads&limit=1
Expected behavior
One would expect the XRPC to return an array containing the last available post.
Additional context
I'm not sure because haven't read much of this codebase, but I think it might be related to this:
The field nullsLast is undefined by default...
atproto/packages/bsky/src/data-plane/server/db/pagination.ts
Lines 135 to 152 in c5b765d
...and should be for getAuthorFeed too, since it's not set here:
atproto/packages/bsky/src/data-plane/server/routes/feeds.ts
Lines 48 to 52 in c5b765d
Because of that, it reaches this query if statement:
atproto/packages/bsky/src/data-plane/server/db/pagination.ts
Lines 156 to 158 in c5b765d
According to the Postgres documentation (and as mentioned on line 141 of pagination.ts above):
The text was updated successfully, but these errors were encountered: