A few small fixes post-UI merge

This commit is contained in:
Andrew Godwin 2023-05-04 11:50:17 -06:00
parent 8ff6100e94
commit 7862795993
3 changed files with 5 additions and 1 deletions

View file

@ -87,7 +87,6 @@ class PostService:
If identity is provided, includes mentions/followers-only posts they If identity is provided, includes mentions/followers-only posts they
can see. Otherwise, shows unlisted and above only. can see. Otherwise, shows unlisted and above only.
""" """
num_descendants = 50
# Retrieve ancestors via parent walk # Retrieve ancestors via parent walk
ancestors: list[Post] = [] ancestors: list[Post] = []
ancestor = self.post ancestor = self.post

View file

@ -15,6 +15,7 @@ class ApiTokenMiddleware:
def __call__(self, request): def __call__(self, request):
auth_header = request.headers.get("authorization", None) auth_header = request.headers.get("authorization", None)
request.token = None request.token = None
request.identity = None
if auth_header and auth_header.startswith("Bearer "): if auth_header and auth_header.startswith("Bearer "):
token_value = auth_header[7:] token_value = auth_header[7:]
if token_value == "__app__": if token_value == "__app__":

View file

@ -411,6 +411,10 @@ section:first-of-type {
margin-top: 30px; margin-top: 30px;
} }
section:first-of-type:has(>h1.above) {
margin-top: 50px;
}
section.invisible { section.invisible {
background: none; background: none;
box-shadow: none; box-shadow: none;