refac: defer profile

This commit is contained in:
Timothy Jaeryang Baek
2026-02-13 14:08:07 -06:00
parent 589c4e64c1
commit b7549d2f6c
4 changed files with 30 additions and 13 deletions

View File

@@ -314,7 +314,13 @@ async def connect(sid, environ, auth):
if user:
SESSION_POOL[sid] = user.model_dump(
exclude=["date_of_birth", "bio", "gender"]
exclude=[
"profile_image_url",
"profile_banner_image_url",
"date_of_birth",
"bio",
"gender",
]
)
await sio.enter_room(sid, f"user:{user.id}")