From 80b423034d3625afc1f112778a31e8d568c72caa Mon Sep 17 00:00:00 2001 From: giles Date: Tue, 24 Feb 2026 01:13:52 +0000 Subject: [PATCH] Fix actor_id: use email not display name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actor_id must match DB records — always use username (email). Co-Authored-By: Claude Opus 4.6 --- app/routers/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/auth.py b/app/routers/auth.py index ee569f2..315307c 100644 --- a/app/routers/auth.py +++ b/app/routers/auth.py @@ -142,7 +142,7 @@ async def callback(request: Request): # Map OAuth response to artdag UserContext display_name = data.get("display_name", "") username = data.get("username", "") - actor_id = f"@{display_name}" if display_name else f"@{username}" + actor_id = f"@{username}" user = UserContext(username=username, actor_id=actor_id)