diff --git a/src/api/notifications.py b/src/api/notifications.py index b02edc2..9f91c1c 100644 --- a/src/api/notifications.py +++ b/src/api/notifications.py @@ -68,7 +68,7 @@ async def get_user_notifications(user_id: PydanticObjectId, user: CurrentUserDep if user.id != user_id: raise HTTPException(status.HTTP_403_FORBIDDEN, "You can only access your own notifications.") - notifications = await Notification.find(expr(Notification.user).id == user.id).to_list() + notifications = await Notification.find(expr(Notification.user).id == user.id, fetch_links=True).to_list() return [NotificationData.from_notification(notification) for notification in notifications]