From: Simon Tatham Date: Thu, 14 Dec 2023 17:35:21 +0000 (+0000) Subject: Match reply visibility to the incoming message. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=e9afde0c7ea65687a48bce84877dfef671a19a2e;p=mastodonochrome.git Match reply visibility to the incoming message. I had a conversation in 'unlisted' status with someone, and it was a pain to keep setting this by hand. Of course, it's only a default: you _can_ change the visibility in a reply. --- diff --git a/cursesclient.py b/cursesclient.py index cde2d89..b717d21 100644 --- a/cursesclient.py +++ b/cursesclient.py @@ -1088,6 +1088,9 @@ class Composer(Activity, EditorCommon): self.language = "en" # FIXME: find a better default from somewhere self.content_warning = "" self.visibility = "public" + if self.reply_id is not None: + reply_status = self.cc.get_status_by_id(reply_id) + self.visibility = reply_status['visibility'] def render(self): y = 0