diff --git a/CHANGELOG.txt b/CHANGELOG.txt index aa0e922..7075c4c 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,3 +1,7 @@ +[0.2.19] +- versioning sync with core, inbox, presence +- fix: auth connection user_id trimming + [0.1.0] - resolvers: schema refactored to model, seen, load - services: core queries fixed diff --git a/pyproject.toml b/pyproject.toml index 99edf96..0a9a21b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "discoursio-notifier" -version = "0.1.0" +version = "0.2.19" description = "notifier server for discours.io" authors = ["discours.io devteam"] diff --git a/services/auth.py b/services/auth.py index e4a14a0..9190c4b 100644 --- a/services/auth.py +++ b/services/auth.py @@ -58,7 +58,7 @@ class LoginRequiredMiddleware(Extension): req = context.get("request") user_id = await check_auth(req) if user_id: - context["user_id"] = user_id + context["user_id"] = user_id.strip() with local_session() as session: author = session.query(Author).filter(Author.user == user_id).first() if author: