]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/FollowRequests.php
Update copyright
[friendica.git] / src / Module / Api / Mastodon / FollowRequests.php
index 3e3ffec58e23fe46ad11804bf5298afbe4244e0f..009094057782bdef047b12ff044e87b05f01005f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -91,7 +91,7 @@ class FollowRequests extends BaseApi
         */
        public static function rawContent(array $parameters = [])
        {
-               $since_id = $_GET['since_id'] ?? null;
+               $min_id = $_GET['min_id'] ?? null;
                $max_id = $_GET['max_id'] ?? null;
                $limit = intval($_GET['limit'] ?? 40);
 
@@ -100,7 +100,7 @@ class FollowRequests extends BaseApi
                $introductions = DI::intro()->selectByBoundaries(
                        ['`uid` = ? AND NOT `ignore`', self::$current_user_id],
                        ['order' => ['id' => 'DESC']],
-                       $since_id,
+                       $min_id,
                        $max_id,
                        $limit
                );
@@ -127,7 +127,7 @@ class FollowRequests extends BaseApi
                }
 
                if (count($introductions)) {
-                       $links[] = '<' . $baseUrl->get() . '/api/v1/follow_requests?' . http_build_query($base_query + ['since_id' => $introductions[0]->id]) . '>; rel="prev"';
+                       $links[] = '<' . $baseUrl->get() . '/api/v1/follow_requests?' . http_build_query($base_query + ['min_id' => $introductions[0]->id]) . '>; rel="prev"';
                }
 
                header('Link: ' . implode(', ', $links));