]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Forum posts from some contacts weren't distributed
authorMichael <heluecht@pirati.ca>
Wed, 11 Jan 2023 21:55:32 +0000 (21:55 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 11 Jan 2023 21:55:32 +0000 (21:55 +0000)
src/Module/ActivityPub/Objects.php
src/Module/DFRN/Poll.php
src/Module/Feed.php

index fd3a2d66c34717532dcfebb27d3f0fdda0681026..9aeef3bb52a66ca03fc22e5f0cc31ba0a770438a 100644 (file)
@@ -75,9 +75,7 @@ class Objects extends BaseModule
                        throw new HTTPException\NotFoundException();
                }
 
-               $owner = User::getById($item['uid'], ['hidewall']);
-
-               $validated = empty($owner['hidewall']) && in_array($item['private'], [Item::PUBLIC, Item::UNLISTED]);
+               $validated = in_array($item['private'], [Item::PUBLIC, Item::UNLISTED]);
 
                if (!$validated) {
                        $requester = HTTPSignature::getSigner('', $_SERVER);
index 7b1535c413706a59e715e0d176cba6195e7df3dd..dbf91712fc07def07c36ee8c7ca6b7743f799049 100644 (file)
@@ -37,13 +37,13 @@ class Poll extends BaseModule
        {
                $owner = User::getByNickname(
                        $this->parameters['nickname'] ?? '',
-                       ['nickname', 'blocked', 'account_expired', 'account_removed', 'hidewall']
+                       ['nickname', 'blocked', 'account_expired', 'account_removed']
                );
                if (!$owner || $owner['account_expired'] || $owner['account_removed']) {
                        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.'));
                }
 
index 654b8a4e9d4fcb62e99ab04aa68faa05e85a89f4..6d291198dcd09627e6fa60e984350c22ef38bc1b 100644 (file)
@@ -65,7 +65,7 @@ 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.'));
                }