This commit is contained in:
parent
e7b9d419c4
commit
2d66870443
|
@ -1,3 +1,6 @@
|
||||||
|
[0.2.19]
|
||||||
|
- fix: stripping user_id
|
||||||
|
|
||||||
[0.2.18]
|
[0.2.18]
|
||||||
- services: auth updated
|
- services: auth updated
|
||||||
- services: core updated
|
- services: core updated
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "discoursio-inbox"
|
name = "discoursio-inbox"
|
||||||
version = "0.2.18"
|
version = "0.2.19"
|
||||||
description = "Inbox server for discours.io"
|
description = "Inbox server for discours.io"
|
||||||
authors = ["Tony Rewin <anton.rewin@gmail.com>"]
|
authors = ["Tony Rewin <anton.rewin@gmail.com>"]
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ def login_required(f):
|
||||||
req = context.get("request")
|
req = context.get("request")
|
||||||
user_id = await check_auth(req)
|
user_id = await check_auth(req)
|
||||||
if user_id:
|
if user_id:
|
||||||
context["user_id"] = user_id
|
context["user_id"] = user_id.strip()
|
||||||
author = get_author_by_user(user_id)
|
author = get_author_by_user(user_id)
|
||||||
if author and "id" in author:
|
if author and "id" in author:
|
||||||
context["author_id"] = author["id"]
|
context["author_id"] = author["id"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user