Add support for content warnings on posts.

This commit is contained in:
Ben Lubar 2018-11-24 13:13:02 -06:00
parent 96fd7ed430
commit 35b5408072
No known key found for this signature in database
GPG key ID: 92939677AB59EDA4
3 changed files with 4 additions and 4 deletions

View file

@ -49,7 +49,7 @@ class ReplyListener(mastodon.StreamListener):
visibility = notification['status']['visibility']
if visibility == "public":
visibility = "unlisted"
client.status_post(toot, post_id, visibility=visibility)
client.status_post(toot, post_id, visibility=visibility, spoiler_text = cfg['cw'])
print("replied with " + toot)
rl = ReplyListener()