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