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

app.bsky.feed.searchPosts tag parameter not working #890

Open
alexmge opened this issue Dec 29, 2024 · 0 comments
Open

app.bsky.feed.searchPosts tag parameter not working #890

alexmge opened this issue Dec 29, 2024 · 0 comments

Comments

@alexmge
Copy link

alexmge commented Dec 29, 2024

It seems that the tag parameter of the app.bsky.feed.searchPosts endpoint doesn't do anything. At first I was working with the js Agent using this query.

const agent = new Agent('https://public.api.bsky.app');
const response = await agent.app.bsky.feed.searchPosts({
  q: '*',
  tag: [<tag>]
});

I expected all the posts returned from this query to have the hashtag specified in the tag field, but none of them have it.

Then I tested manually querying https://public.api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=*&tag=<tag> with a web browser. Same result: none of the returned posts has the specified tag.

If I specify a common word in the q parameter like 'the', it indeed returns all the posts containing 'the', but still none of them has the specified tag.

The only way I successfully searched by tag is by doing it like this : https://public.api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=%23<tag>.

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

1 participant