Merge pull request #6807 from MrPetovan/bug/6800-fix-contactblock-relationship-direction
Fix relationship direction in Widget/ContactBlock
This commit is contained in:
commit
9d0aaf3c67
1 changed files with 2 additions and 2 deletions
|
@ -62,9 +62,9 @@ class ContactBlock
|
||||||
if ($total) {
|
if ($total) {
|
||||||
// Only show followed for personal accounts, followers for pages
|
// Only show followed for personal accounts, followers for pages
|
||||||
if (defaults($profile, 'account-type', User::ACCOUNT_TYPE_PERSON) == User::ACCOUNT_TYPE_PERSON) {
|
if (defaults($profile, 'account-type', User::ACCOUNT_TYPE_PERSON) == User::ACCOUNT_TYPE_PERSON) {
|
||||||
$rel = [Contact::FOLLOWER, Contact::FRIEND];
|
|
||||||
} else {
|
|
||||||
$rel = [Contact::SHARING, Contact::FRIEND];
|
$rel = [Contact::SHARING, Contact::FRIEND];
|
||||||
|
} else {
|
||||||
|
$rel = [Contact::FOLLOWER, Contact::FRIEND];
|
||||||
}
|
}
|
||||||
|
|
||||||
$contact_ids_stmt = DBA::select('contact', ['id'], [
|
$contact_ids_stmt = DBA::select('contact', ['id'], [
|
||||||
|
|
Loading…
Reference in a new issue