mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 10:28:06 -05:00
refac: defer profile
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user