0.2.19-fix
All checks were successful
deploy / deploy (push) Successful in 1m15s

This commit is contained in:
2024-01-10 16:31:01 +03:00
parent e7b9d419c4
commit 2d66870443
3 changed files with 5 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ def login_required(f):
req = context.get("request")
user_id = await check_auth(req)
if user_id:
context["user_id"] = user_id
context["user_id"] = user_id.strip()
author = get_author_by_user(user_id)
if author and "id" in author:
context["author_id"] = author["id"]