From 7862795993fcf2c249ff40bb043740b1071a0b63 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 4 May 2023 11:50:17 -0600 Subject: [PATCH] A few small fixes post-UI merge --- activities/services/post.py | 1 - api/middleware.py | 1 + static/css/style.css | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/activities/services/post.py b/activities/services/post.py index f7e0b31..c5adb32 100644 --- a/activities/services/post.py +++ b/activities/services/post.py @@ -87,7 +87,6 @@ class PostService: If identity is provided, includes mentions/followers-only posts they can see. Otherwise, shows unlisted and above only. """ - num_descendants = 50 # Retrieve ancestors via parent walk ancestors: list[Post] = [] ancestor = self.post diff --git a/api/middleware.py b/api/middleware.py index cea8238..3a866a9 100644 --- a/api/middleware.py +++ b/api/middleware.py @@ -15,6 +15,7 @@ class ApiTokenMiddleware: def __call__(self, request): auth_header = request.headers.get("authorization", None) request.token = None + request.identity = None if auth_header and auth_header.startswith("Bearer "): token_value = auth_header[7:] if token_value == "__app__": diff --git a/static/css/style.css b/static/css/style.css index aad6a20..8dd3280 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -411,6 +411,10 @@ section:first-of-type { margin-top: 30px; } +section:first-of-type:has(>h1.above) { + margin-top: 50px; +} + section.invisible { background: none; box-shadow: none;