mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +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,6 +253,9 @@ class Compose(FormView):
|
||||||
] = self.request.identity.config_identity.default_post_visibility
|
] = self.request.identity.config_identity.default_post_visibility
|
||||||
if self.reply_to:
|
if self.reply_to:
|
||||||
initial["reply_to"] = self.reply_to.pk
|
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["visibility"] = self.reply_to.visibility
|
||||||
initial["text"] = f"@{self.reply_to.author.handle} "
|
initial["text"] = f"@{self.reply_to.author.handle} "
|
||||||
return initial
|
return initial
|
||||||
|
|
|
@ -223,4 +223,4 @@ class Config(models.Model):
|
||||||
class IdentityOptions(pydantic.BaseModel):
|
class IdentityOptions(pydantic.BaseModel):
|
||||||
|
|
||||||
toot_mode: bool = False
|
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