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 <noreply@anthropic.com>
This commit is contained in:
@@ -134,6 +134,7 @@ class StatusView(View):
|
|||||||
"eventify_id": user.eventify_id or '',
|
"eventify_id": user.eventify_id or '',
|
||||||
"district": user.district or '',
|
"district": user.district or '',
|
||||||
"district_changed_at": user.district_changed_at.isoformat() if user.district_changed_at else None,
|
"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:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user