]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Blocks.php
Use "checkAllowedScope" instead of "login"
[friendica.git] / src / Module / Api / Mastodon / Blocks.php
index b1d802d053382f391d2d05d5da65a454de5a84b2..d92b6059d3b3abd81a6dd55db0ca3a5dae54e11d 100644 (file)
@@ -37,7 +37,7 @@ class Blocks extends BaseApi
         */
        public static function rawContent(array $parameters = [])
        {
-               self::login(self::SCOPE_READ);
+               self::checkAllowedScope(self::SCOPE_READ);
                $uid = self::getCurrentUserID();
 
                if (empty($parameters['id'])) {
@@ -49,6 +49,8 @@ class Blocks extends BaseApi
                        DI::mstdnError()->RecordNotFound();
                }
 
+               // @todo provide HTTP link header
+
                $request = self::getRequest([
                        'max_id'   => 0,  // Return results older than this id
                        'since_id' => 0,  // Return results newer than this id