From 60d98f1ae8575d1aa4f8e55f4d5445b53242317b Mon Sep 17 00:00:00 2001 From: Sicherhaven Date: Wed, 8 Apr 2026 16:12:27 +0530 Subject: [PATCH] feat: add profile_photo to StatusView response Expose profile_photo in /user/status/ so the Flutter app can hydrate the profile picture for existing sessions without requiring a re-login. Co-Authored-By: Claude Sonnet 4.6 --- mobile_api/views/user.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mobile_api/views/user.py b/mobile_api/views/user.py index 7f273ab..775b547 100644 --- a/mobile_api/views/user.py +++ b/mobile_api/views/user.py @@ -134,6 +134,7 @@ class StatusView(View): "eventify_id": user.eventify_id or '', "district": user.district or '', "district_changed_at": user.district_changed_at.isoformat() if user.district_changed_at else None, + "profile_photo": user.profile_picture.url if user.profile_picture else '', }) except Exception as e: