]> git.mxchange.org Git - friendica.git/commitdiff
No need for +1 and -1
authorMichael <heluecht@pirati.ca>
Wed, 16 Jun 2021 17:57:01 +0000 (17:57 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 16 Jun 2021 17:57:01 +0000 (17:57 +0000)
src/Module/BaseApi.php

index 76acd4d889b8e85049169a2ef37ff1ae5754ef69..f5a16da765de750ec097e67a3bbe1343dcf4f753 100644 (file)
@@ -213,8 +213,8 @@ class BaseApi extends BaseModule
 
                $prev_request = $next_request = $request;
 
-               $prev_request['min_id'] = self::$boundaries['max'] + 1;
-               $next_request['max_id'] = self::$boundaries['min'] - 1;
+               $prev_request['min_id'] = self::$boundaries['max'];
+               $next_request['max_id'] = self::$boundaries['min'];
 
                $command = DI::baseUrl() . '/' . DI::args()->getCommand();