From b3c576b9ce160248f560ee1137a7bafe2d99cfc7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 12 Oct 2021 21:17:19 -0400 Subject: [PATCH] Fix request parameter mapping to selectByBoundaries() in Api\Mastodon\Notifications --- src/Module/Api/Mastodon/Notifications.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Api/Mastodon/Notifications.php b/src/Module/Api/Mastodon/Notifications.php index 28166e6ed..a6a024d9b 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'] );