]> git.mxchange.org Git - friendica.git/commitdiff
Fix relationship direction in Widget/ContactBlock
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 4 Mar 2019 13:40:53 +0000 (08:40 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 4 Mar 2019 13:40:53 +0000 (08:40 -0500)
src/Content/Widget/ContactBlock.php

index fdc7a470f7e468a52ded3f42468ed6c4f5fe9553..6c77e7f3fd3119747050f983a7779384a55ecac0 100644 (file)
@@ -62,9 +62,9 @@ class ContactBlock
                if ($total) {
                        // Only show followed for personal accounts, followers for pages
                        if (defaults($profile, 'account-type', User::ACCOUNT_TYPE_PERSON) == User::ACCOUNT_TYPE_PERSON) {
-                               $rel = [Contact::FOLLOWER, Contact::FRIEND];
-                       } else {
                                $rel = [Contact::SHARING, Contact::FRIEND];
+                       } else {
+                               $rel = [Contact::FOLLOWER, Contact::FRIEND];
                        }
 
                        $contact_ids_stmt = DBA::select('contact', ['id'], [