Default replies to unlisted, new users to public
This commit is contained in:
parent
c76c72fc81
commit
348c03e7da
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user