Default replies to unlisted, new users to public

This commit is contained in:
Andrew Godwin 2022-11-27 15:40:01 -07:00
parent c76c72fc81
commit 348c03e7da
2 changed files with 5 additions and 2 deletions

View file

@ -253,6 +253,9 @@ class Compose(FormView):
] = self.request.identity.config_identity.default_post_visibility
if self.reply_to:
initial["reply_to"] = self.reply_to.pk
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

View file

@ -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