better visibility handling

This commit is contained in:
Lynne 2018-10-27 23:25:46 +10:00
parent 0c97743ffd
commit 8bc97a0203
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ class ReplyListener(mastodon.StreamListener):
toot = create.make_toot(True)['toot'] toot = create.make_toot(True)['toot']
toot = acct + " " + toot toot = acct + " " + toot
print(acct + " says " + mention) print(acct + " says " + mention)
client.status_post(toot, post_id, visibility=notification['status']['visibility']) visibility = notification['status']['visibility']
if visibility == "public":
visibility = "unlisted"
client.status_post(toot, post_id, visibility=visibility)
print("replied with " + toot) print("replied with " + toot)
rl = ReplyListener() rl = ReplyListener()