Closed anantshri closed 1 year ago
As of now I am using https://github.com/anantshri/gotosocial_bulk_follow code to do the action but would love to have proper api compatibility.
Judging from the logs, it looks like the issue is that we just haven't implemented /api/v1/accounts/search
yet, as opposed to /api/v1/search
, which we have implemented.
I might be misled but i think i got confused with https://github.com/ihabunek/toot/commit/89585b6761769d2b0e3410ac714d12d91a9c24a6 where toot cli changed search api from v1 to v2 and in v1 /accounts existed where as for v2 its directly search.
In gotosocial we have /search without account which matches with v2 specs just that v2 is not specified.
Tootcli has just released a new version will update comments with status updated regarding this new version.
Ah this is interesting. I didnt explored this properly it seems. so yes /api/v1/accounts/search is not implemented but we do have /api/v1/search
and /api/v2/search
already implemented with https://github.com/ihabunek/toot/releases/tag/0.28.1 i am able to use toot cli follow command properly with gotosocial.
Closing the issue as my concern is sorted.
Describe the bug with a clear and concise description of what the bug is.
Thanks for the tool.
I was testing the tool for compatibility with toot cli and realized althought auth related issue https://github.com/superseriousbusiness/gotosocial/issues/192 were resolved.
there is another change / deviation i observed
Mastodon search api v2 : https://docs.joinmastodon.org/methods/search/ is what we have implemented as v1 : in https://github.com/superseriousbusiness/gotosocial/blob/main/docs/api/swagger.yaml#L3671 also visible https://docs.gotosocial.org/en/latest/api/swagger/
This is breaking the toot follow command as follow needs to search first.
What's your GoToSocial Version?
0.5.2
GoToSocial Arch
amd64 binary
Browser version
No response
What happened?
when trying to follow via toot cli we get error on debug e get simmilar message
What you expected to happen?
Toot cli was suppose to follow the user
How to reproduce it?
do a toot auth and then toot follow command
Anything else we need to know?
a stated above this is a api compatability issue
Mastodon search api v2 : https://docs.joinmastodon.org/methods/search/ is what we have implemented as v1 : in https://github.com/superseriousbusiness/gotosocial/blob/main/docs/api/swagger.yaml#L3671 also visible https://docs.gotosocial.org/en/latest/api/swagger/