]> git.mxchange.org Git - friendica.git/commitdiff
Correction: Must be inverted
authorMichael <heluecht@pirati.ca>
Wed, 18 Sep 2019 16:37:13 +0000 (16:37 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 18 Sep 2019 16:37:13 +0000 (16:37 +0000)
src/Model/Contact.php

index a5c14754ff90c656db5b755b6221a6c9efe2cf7b..23d4ec62d6f00116771d8d39688973deec511a22 100644 (file)
@@ -727,7 +727,7 @@ class Contact extends BaseObject
                $fields['avatar'] = System::baseUrl() . '/photo/profile/' .$uid . '.' . $file_suffix;
                $fields['forum'] = $user['page-flags'] == User::PAGE_FLAGS_COMMUNITY;
                $fields['prv'] = $user['page-flags'] == User::PAGE_FLAGS_PRVGROUP;
-               $fields['unsearchable'] = $user['hidewall'] || $profile['net-publish'];
+               $fields['unsearchable'] = $user['hidewall'] || !$profile['net-publish'];
 
                // it seems as if ported accounts can have wrong values, so we make sure that now everything is fine.
                $fields['url'] = System::baseUrl() . '/profile/' . $user['nickname'];