]> 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)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 13 Jan 2023 14:19:10 +0000 (09:19 -0500)
src/Module/ActivityPub/Objects.php
src/Module/DFRN/Poll.php
src/Module/Feed.php

index 8c8109d667ca99ac2d8a7a0a798f789a6c44f1bb..528aa940571706774a118145aeb23b7e6d6b31f7 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 1562ce0de263f7b1a9b7ce94d07c2da2990eeb5a..e841e9b26bb5e73d8067dbff3418afb5b79aaeaa 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 59714af387baa60f3e4ec2df537fa162c0a4c1a6..92d65fb4b990911e88bfe3828a2a1d08704a12db 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.'));
                }