]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Mutes.php
Merge pull request #11070 from annando/api-array-reverse
[friendica.git] / src / Module / Api / Mastodon / Mutes.php
index 9d612a455f6c7d1d26f31aaaf345fb0fe37a9d89..80e04f3dd268cb40d6af482e9757ed6a3e1f6f27 100644 (file)
@@ -48,7 +48,7 @@ class Mutes extends BaseApi
                        DI::mstdnError()->RecordNotFound();
                }
 
-               $request = self::getRequest([
+               $request = $this->getRequest([
                        'max_id'   => 0,  // Return results older than this id
                        'since_id' => 0,  // Return results newer than this id
                        'min_id'   => 0,  // Return results immediately newer than id
@@ -81,7 +81,7 @@ class Mutes extends BaseApi
                DBA::close($followers);
 
                if (!empty($request['min_id'])) {
-                       array_reverse($accounts);
+                       $accounts = array_reverse($accounts);
                }
 
                self::setLinkHeader();