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

mastodon.account_search not working correctly? #361

Open
pdeitel opened this issue Nov 11, 2023 · 10 comments
Open

mastodon.account_search not working correctly? #361

pdeitel opened this issue Nov 11, 2023 · 10 comments

Comments

@pdeitel
Copy link

pdeitel commented Nov 11, 2023

When I try
accounts = mastodon.account_search(q='Mastodon')
I get back mostly results that don't contain the word "Mastodon" in the account name and the main Mastodon account is not even included in the 40 results that come back. What am I missing?

@craigmaloney
Copy link

Which version of Mastodon.py are you using? I'm running a similar query and it appears to be returning the correct results. This is on octodon.social with Mastodon.py 1.8.1.

@pdeitel
Copy link
Author

pdeitel commented Nov 11, 2023

Exact same version.

@pdeitel
Copy link
Author

pdeitel commented Nov 11, 2023

I am logged into my account through mastodon.social though I don't think that query requires it.

@craigmaloney
Copy link

Could you try a different server to see if you have the same results? I tried on another server and can't seem to replicate the same results you're experiencing. The search is reliant on whatever the server returns.

@pdeitel
Copy link
Author

pdeitel commented Nov 11, 2023

Hmmm. So I switched to mastodon.online and used a separate account I have there. Doing the same search did in fact return the main mastodon account on mastodon.social. But it's also returning mostly account names that don't include the word "mastodon."

When I first started experimenting with Mastodon.py earlier this year, this same search would only return accounts with names that included the word I was searching for. strange.

@craigmaloney
Copy link

Yeah, that is weird. Wonder if a note to Mastodon.social to ask what's going on is in order?

@pdeitel
Copy link
Author

pdeitel commented Nov 11, 2023

I'll do that.

@halcy
Copy link
Owner

halcy commented Feb 11, 2024

Closing this as it seems to be more of a weird server specific thing rather than an api impl bug

@halcy halcy closed this as completed Feb 11, 2024
@pdeitel
Copy link
Author

pdeitel commented Feb 11, 2024

OK. But is it strange that most of the results coming back from multiple servers don't have the search term in the user name?

@halcy
Copy link
Owner

halcy commented Feb 11, 2024

It is slightly weird, tbh. Can you post a short repro? I will check it out

@halcy halcy reopened this Feb 11, 2024
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

3 participants