mirror of
https://github.com/friendica/friendica
synced 2025-04-26 02:30:11 +00:00
Simplify Depository\Notify->selectAllForUser parameters
- Shifts database structure knowledge from the controller to the depository where it should be
This commit is contained in:
parent
8a1a2f658c
commit
4f42522ebc
2 changed files with 10 additions and 3 deletions
|
@ -5590,7 +5590,7 @@ function api_friendica_notification($type)
|
|||
throw new BadRequestException('Invalid argument count');
|
||||
}
|
||||
|
||||
$Notifies = DI::notify()->selectAllForUser(local_user(), ['order' => ['seen' => 'ASC', 'date' => 'DESC'], 'limit' => 50]);
|
||||
$Notifies = DI::notify()->selectAllForUser(local_user(), 50);
|
||||
|
||||
$notifications = new ApiNotifications();
|
||||
foreach ($Notifies as $Notify) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue