From 79f2b42f74b00b4bf1e537e14eba1554cbc8f5c5 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 4 Mar 2019 08:40:53 -0500 Subject: [PATCH] Fix relationship direction in Widget/ContactBlock --- src/Content/Widget/ContactBlock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Content/Widget/ContactBlock.php b/src/Content/Widget/ContactBlock.php index fdc7a470f7..6c77e7f3fd 100644 --- a/src/Content/Widget/ContactBlock.php +++ b/src/Content/Widget/ContactBlock.php @@ -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'], [ -- 2.39.5