]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Feed.php
Move jsonError out of Factory\Api\Mastodon\Error->Forbidden
[friendica.git] / src / Module / Feed.php
index 59714af387baa60f3e4ec2df537fa162c0a4c1a6..b9d573979a721430eec0467b725635c5b0efb8b7 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -65,12 +65,12 @@ class Feed extends BaseModule
                        throw new HTTPException\NotFoundException($this->t('User not found.'));
                }
 
-               if ($owner['blocked'] || $owner['hidewall']) {
+               if ($owner['blocked']) {
                        throw new HTTPException\UnauthorizedException($this->t('Access to this profile has been restricted.'));
                }
 
                $feed = ProtocolFeed::atom($owner, $last_update, 10, $type);
 
-               System::httpExit($feed, Response::TYPE_ATOM);
+               $this->httpExit($feed, Response::TYPE_ATOM);
        }
 }