Fix relationship direction in Widget/ContactBlock

This commit is contained in:
Hypolite Petovan 2019-03-04 08:40:53 -05:00
parent e157c89dc7
commit 79f2b42f74

View 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'], [