mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 11:33:17 +08:00
Eager load notification relationships
This commit is contained in:
parent
bd3bc6b274
commit
731b00571c
|
@ -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…
Reference in New Issue
Block a user