summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMichael Manfre2022-11-25 21:33:46 -0500
committerGitHub2022-11-25 19:33:46 -0700
commitd60ba9a0515aed0b8235a7738a5fecd8fd78f859 (patch)
treed571851b37d2b5c4a1f122e6fbf3890947ee7af2 /core
parentab7a8cb120fe905562281b331a08e87abeff0fbe (diff)
downloadtakahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.tar.gz
takahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.tar.bz2
takahe-d60ba9a0515aed0b8235a7738a5fecd8fd78f859.zip
Added default post visibility
Diffstat (limited to 'core')
-rw-r--r--core/context.py2
-rw-r--r--core/models/config.py1
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