robertoszek / pleroma-bot

Bot for mirroring one or multiple Twitter accounts in Pleroma/Mastodon/Misskey.
https://robertoszek.github.io/pleroma-bot
MIT License
102 stars 19 forks source link

"vistibility" is always "unlisted" #86

Closed selyod-ka closed 2 years ago

selyod-ka commented 2 years ago

Hey, thanks for your work on pleroma-bot!

I noticed that all toots get the visibility "unlisted" despite stated otherwise in my config.yml. In my understanding, the reason is that default_cfg_attributes misses the key "visibility" and therefore if not hasattr(self, "visibility"): is always true, i.e. "visibility" is set to "unlisted".

robertoszek commented 2 years ago

Hi! What version are using? 1.0.2?

Would you mind trying out 1.0.3rc14? There was a regression fixed about visibility when defined as a global mapping in the config, which I'm not sure if it's your case.

You can install the release candidate like so:

pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pleroma-bot==1.0.3rc14

If still doesn't work as expected, report back and please provide your config (excluding any sensitive data, like tokens and so on) and I'll try to reproduce it on my end.

selyod-ka commented 2 years ago

Hey!

Yes, I'm on 1.0.2 and I'm using 'visibility' in the global mapping.

Have not tried 1.0.3rc14, but downloaded it locally and checked if 'visibility' is a key of 'default_cfg_attributes'. As that is the case, I'm sure this issue is fixed in 1.0.3rc14. Thanks.

robertoszek commented 2 years ago

Even so, if you find it doesn't work as expected on 1.0.3rc14 (or 1.0.3 stable, whenever it releases), feel free to open a new issue and I'll check it out. Have a nice day!