diff options
author | Michael Manfre | 2022-11-25 21:33:46 -0500 |
---|---|---|
committer | GitHub | 2022-11-25 19:33:46 -0700 |
commit | d60ba9a0515aed0b8235a7738a5fecd8fd78f859 (patch) | |
tree | d571851b37d2b5c4a1f122e6fbf3890947ee7af2 /core | |
parent | ab7a8cb120fe905562281b331a08e87abeff0fbe (diff) | |
download | takahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.tar.gz takahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.tar.bz2 takahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.zip |
Added default post visibility
Diffstat (limited to 'core')
-rw-r--r-- | core/context.py | 2 | ||||
-rw-r--r-- | core/models/config.py | 1 |
2 files changed, 2 insertions, 1 deletions
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 |