]> 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 cb981b33ebf806fe15cec622e34d8d065cc0a7f4..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'];