Add support for content warnings on posts.
This commit is contained in:
parent
96fd7ed430
commit
35b5408072
3 changed files with 4 additions and 4 deletions
2
reply.py
2
reply.py
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue