]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Mutes.php
Merge branch 'api-again' of github.com:annando/friendica into api-again
[friendica.git] / src / Module / Api / Mastodon / Mutes.php
index b5ec30de4da67cc4ea5436db583b97c51bc2ffd6..d49bdad68e90e48d4025006a1d06ee6682030ee0 100644 (file)
@@ -41,7 +41,7 @@ class Mutes extends BaseApi
                $uid = self::getCurrentUserID();
 
                if (empty($parameters['id'])) {
-                       DI::mstdnError()->RecordNotFound();
+                       DI::mstdnError()->UnprocessableEntity();
                }
 
                $id = $parameters['id'];
@@ -80,6 +80,10 @@ class Mutes extends BaseApi
                }
                DBA::close($followers);
 
+               if (!empty($min_id)) {
+                       array_reverse($accounts);
+               }
+
                System::jsonExit($accounts);
        }
 }