summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-27 15:40:01 -0700
committerAndrew Godwin2022-11-27 15:40:17 -0700
commit348c03e7da2478def83e7d6d9e1f7f1fad265fcd (patch)
tree9ad5c0384aa897e0c7393ede5691624b92968022 /activities
parentc76c72fc81ad060e5896dbd318fd4610f7bdb713 (diff)
downloadtakahe-348c03e7da2478def83e7d6d9e1f7f1fad265fcd.tar.gz
takahe-348c03e7da2478def83e7d6d9e1f7f1fad265fcd.tar.bz2
takahe-348c03e7da2478def83e7d6d9e1f7f1fad265fcd.zip
Default replies to unlisted, new users to public
Diffstat (limited to 'activities')
-rw-r--r--activities/views/posts.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/activities/views/posts.py b/activities/views/posts.py
index e394c4e..9935205 100644
--- a/activities/views/posts.py
+++ b/activities/views/posts.py
@@ -253,7 +253,10 @@ class Compose(FormView):
] = self.request.identity.config_identity.default_post_visibility
if self.reply_to:
initial["reply_to"] = self.reply_to.pk
- initial["visibility"] = self.reply_to.visibility
+ if self.reply_to.visibility == Post.Visibilities.public:
+ initial["visibility"] = Post.Visibilities.unlisted
+ else:
+ initial["visibility"] = self.reply_to.visibility
initial["text"] = f"@{self.reply_to.author.handle} "
return initial