From 348c03e7da2478def83e7d6d9e1f7f1fad265fcd Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 27 Nov 2022 15:40:01 -0700 Subject: [PATCH] Default replies to unlisted, new users to public --- activities/views/posts.py | 5 ++++- core/models/config.py | 2 +- 2 files changed, 5 insertions(+), 2 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 diff --git a/core/models/config.py b/core/models/config.py index f22389b..6c31658 100644 --- a/core/models/config.py +++ b/core/models/config.py @@ -223,4 +223,4 @@ class Config(models.Model): class IdentityOptions(pydantic.BaseModel): toot_mode: bool = False - default_post_visibility: int = 1 # Post.Visibilities.unlisted + default_post_visibility: int = 0 # Post.Visibilities.public