This commit is contained in:
@@ -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"]
|
||||
|
Reference in New Issue
Block a user