From: Hypolite Petovan Date: Wed, 13 Oct 2021 01:17:19 +0000 (-0400) Subject: Fix request parameter mapping to selectByBoundaries() in Api\Mastodon\Notifications X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b3c576b9ce160248f560ee1137a7bafe2d99cfc7;p=friendica.git Fix request parameter mapping to selectByBoundaries() in Api\Mastodon\Notifications --- diff --git a/src/Module/Api/Mastodon/Notifications.php b/src/Module/Api/Mastodon/Notifications.php index 28166e6ed7..a6a024d9b1 100644 --- a/src/Module/Api/Mastodon/Notifications.php +++ b/src/Module/Api/Mastodon/Notifications.php @@ -124,8 +124,8 @@ class Notifications extends BaseApi $Notifications = DI::notification()->selectByBoundaries( $condition, $params, - $request['min_id'] ?? null, - $request['min_id'] ?? $request['since_id'] ?? null, + $request['min_id'] ?: $request['since_id'], + $request['max_id'], $request['limit'] );