halcy / Mastodon.py

Python wrapper for the Mastodon ( https://github.com/mastodon/mastodon/ ) API.
MIT License
867 stars 150 forks source link

mastodon.account_search not working correctly? #361

Open pdeitel opened 8 months ago

pdeitel commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

Exact same version.

pdeitel commented 8 months ago

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

craigmaloney commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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

pdeitel commented 8 months ago

I'll do that.

halcy commented 5 months ago

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

pdeitel commented 5 months ago

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 commented 5 months ago

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