From 8bc97a020382931c5eeafb7bcc6bc97c09a50ed1 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sat, 27 Oct 2018 23:25:46 +1000 Subject: [PATCH] better visibility handling --- reply.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reply.py b/reply.py index aa48aef..f4845de 100755 --- a/reply.py +++ b/reply.py @@ -46,7 +46,10 @@ class ReplyListener(mastodon.StreamListener): toot = create.make_toot(True)['toot'] toot = acct + " " + toot 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) rl = ReplyListener()