use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\Model\Contact;
+use Friendica\Model\User;
/**
* ContactBlock widget
if (!$total) {
$micropro = [];
} else {
+ // 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];
+ }
+
$contact_ids_stmt = DBA::select('contact', ['id'], [
'uid' => $profile['uid'],
'self' => false,
'pending' => false,
'hidden' => false,
'archive' => false,
- 'rel' => [Contact::FOLLOWER, Contact::FRIEND],
+ 'rel' => $rel,
'network' => [Protocol::DFRN, Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA],
], ['limit' => $shown]);