From d60ba9a0515aed0b8235a7738a5fecd8fd78f859 Mon Sep 17 00:00:00 2001 From: Michael Manfre Date: Fri, 25 Nov 2022 21:33:46 -0500 Subject: Added default post visibility --- core/context.py | 2 +- core/models/config.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/context.py b/core/context.py index 1db3436..876c643 100644 --- a/core/context.py +++ b/core/context.py @@ -5,7 +5,7 @@ def config_context(request): return { "config": Config.system, "config_identity": ( - Config.load_identity(request.identity) if request.identity else None + request.identity.config_identity if request.identity else None ), "top_section": request.path.strip("/").split("/")[0], } diff --git a/core/models/config.py b/core/models/config.py index 0a8d624..f22389b 100644 --- a/core/models/config.py +++ b/core/models/config.py @@ -223,3 +223,4 @@ class Config(models.Model): class IdentityOptions(pydantic.BaseModel): toot_mode: bool = False + default_post_visibility: int = 1 # Post.Visibilities.unlisted -- cgit v1.2.3