mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
Default replies to unlisted, new users to public
This commit is contained in:
parent
c76c72fc81
commit
348c03e7da
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue