mirror of
https://github.com/flarum/core.git
synced 2025-05-22 23:33:48 +02:00
Eager load notification relationships
This commit is contained in:
parent
8e4f4a549c
commit
78e10ec541
@ -73,6 +73,7 @@ class IndexAction extends SerializeCollectionAction
|
|||||||
|
|
||||||
$user->markNotificationsAsRead()->save();
|
$user->markNotificationsAsRead()->save();
|
||||||
|
|
||||||
return $this->notifications->findByUser($user, $request->limit, $request->offset);
|
return $this->notifications->findByUser($user, $request->limit, $request->offset)
|
||||||
|
->load($request->include);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user