summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
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