From: Michael Date: Sun, 6 Jun 2021 09:19:29 +0000 (+0000) Subject: Respect the "unlisted" setting for forum posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b269a2da8704c0500f8bc93db690a3d49a418489;p=friendica.git Respect the "unlisted" setting for forum posts --- diff --git a/src/Model/Item.php b/src/Model/Item.php index f85bce5e8f..0d7df891e2 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -1918,8 +1918,13 @@ class Item $owner_id = Contact::getIdForURL($self['url']); // also reset all the privacy bits to the forum default permissions - - $private = ($user['allow_cid'] || $user['allow_gid'] || $user['deny_cid'] || $user['deny_gid']) ? self::PRIVATE : self::UNLISTED; + if ($user['allow_cid'] || $user['allow_gid'] || $user['deny_cid'] || $user['deny_gid']) { + $private = self::PRIVATE; + } elseif (DI::pConfig()->get($user['uid'], 'system', 'unlisted')) { + $private = Item::UNLISTED; + } else { + $private = Item::PUBLIC; + } $psid = PermissionSet::getIdFromACL( $user['uid'],