Kansattica / msync

A store and forward command line Mastodon and Pleroma client that fits on a floppy disk.
Other
60 stars 5 forks source link

default post privacy not working correctly on Akkoma #83

Open mimuki opened 10 months ago

mimuki commented 10 months ago

My post privacy is set to followers only/private in the Akkoma web interface, but posts sent by msync with "default" privacy are posted as public. I don't know if you're interested in supporting stuff that isn't mastodon... but i figured I would mention it just in case.

thanks for the very cool tool, by the way- it's been helping me a lot

Kansattica commented 10 months ago

Thank you! Do you happen to know what the Akkoma API wants to see in this case? If it's something I can add alongside the Mastodon stuff without adding a lot of extra code or stuff that cares about specific server software, I'll look into it.

mimuki commented 10 months ago

i have no idea, but i'll poke around and see if i can figure it out :)

mimuki commented 10 months ago

https://docs.akkoma.dev/stable/development/API/differences_in_mastoapi_responses/#akkoma-settings-store seems to indicate that GETting the /api/v1/accounts/verify_credentials endpoint will return the default privacy (among other things)

and https://docs.akkoma.dev/stable/development/API/differences_in_mastoapi_responses/#patch-apiv1accountsupdate_credentials leads me to think that default_scope is the name of the default privacy parameter?

I'm not super savvy with API stuff, let me know if you need more information and i'll try and find it. But to be honest, this sounds like a bunch of work just for Akkoma, and i'm happy to just use the --privacy flag if that's the case.

Kansattica commented 10 months ago

Ah, yes, it looks like they don't implement default like Mastodon does. I will take a look later and see if I'm missing something, but it may be worth asking the Akkoma devs to implement the default privacy? Msync isn't the only one that uses it- I know Subway Tooter and probably some other mobile apps have the same setting.