diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 858b4f8..7155c6c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,6 @@ +[0.2.19] +- fix: stripping user_id + [0.2.18] - services: auth updated - services: core updated diff --git a/pyproject.toml b/pyproject.toml index 49f6e83..9353663 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "discoursio-inbox" -version = "0.2.18" +version = "0.2.19" description = "Inbox server for discours.io" authors = ["Tony Rewin "] diff --git a/services/auth.py b/services/auth.py index 513242c..23a5ea3 100644 --- a/services/auth.py +++ b/services/auth.py @@ -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"]