]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Mutes.php
Added scope check
[friendica.git] / src / Module / Api / Mastodon / Mutes.php
index b5ec30de4da67cc4ea5436db583b97c51bc2ffd6..9e53da504c1d032bda1be4857f58a85d07c9028a 100644 (file)
@@ -37,11 +37,11 @@ class Mutes extends BaseApi
         */
        public static function rawContent(array $parameters = [])
        {
-               self::login();
+               self::login(self::SCOPE_READ);
                $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);
        }
 }