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

getAuthorFeed with posts_and_author_threads filter incorrect behaviour with threads saved with same createdAt #3027

Open
fogrye opened this issue Nov 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@fogrye
Copy link

fogrye commented Nov 17, 2024

Describe the bug

Bsky client inserts threads using com.atproto.repo.applyWrites programatically computing cid and rkey. If thread is created at same time it works just fine because of only 1 call.

As third party service dev I rely on com.atproto.repo.createRecord to get correct uri and cid. Still I use same createdAt as time of bigger post from other service.

Thread is successfully created but available only with posts_with_replies filter for method app.bsky.feed.getAuthorFeed.

To Reproduce

Steps to reproduce the behavior:

  1. exec
const agent = new AtpAgent({
   service: 'https://bsky.social',
});
// authorise

const date = new Date();
const {uri, cid} = await agent.post({
text: 'hello',
createdAt: date.toISOString()
})
await agent.post({
text: 'world',
reply: {root: {uri, cid}, parent: {uri, cid}},
createdAt: date.toISOString()
})
  1. check in client app that thread missing in tab "Posts", only visible in "Replies"

Expected behavior

Thread should be visible in "Posts"

@fogrye fogrye added the bug Something isn't working label Nov 17, 2024
@fogrye fogrye closed this as completed Nov 17, 2024
@fogrye fogrye changed the title getAuthorFeed with posts_and_author_threads filter incorrect behaviour with threads getAuthorFeed with posts_and_author_threads filter incorrect behaviour with threads saved with same createdAt Nov 18, 2024
@fogrye fogrye reopened this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant