Skip to content

Commit 2d4f4be

Browse files
committed
fix: update profile photo handling in notifications
- Modified the notification rendering logic to use the actor's profile photo directly instead of the previously used profile_photo_url. - Added a conditional check to ensure the profile photo is only displayed if available, improving the robustness of the notification display. This change enhances the visual representation of notifications by ensuring accurate profile images are shown.
1 parent 1d94a84 commit 2d4f4be

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/app/dashboard/notifications/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ const NotificationPage = () => {
367367
label={actorLabel}
368368
profilePhoto={notification.actor?.profile_photo}
369369
profilePhotoUrl={
370-
notification.actor?.profile_photo_url
370+
notification.actor?.profile_photo
371+
? getFileUrl(notification.actor.profile_photo)
372+
: null
371373
}
372374
/>
373375
</Link>
@@ -376,7 +378,9 @@ const NotificationPage = () => {
376378
label={actorLabel}
377379
profilePhoto={notification.actor?.profile_photo}
378380
profilePhotoUrl={
379-
notification.actor?.profile_photo_url
381+
notification.actor?.profile_photo
382+
? getFileUrl(notification.actor.profile_photo)
383+
: null
380384
}
381385
/>
382386
)}

0 commit comments

Comments
 (0)