/**
* Get HTML for contact block
*
- * @template contact_block.tpl
+ * @template widget/contacts.tpl
* @hook contact_block_end (contacts=>array, output=>string)
* @return string
*/
'pending' => false,
'hidden' => false,
'archive' => false,
- 'network' => [Protocol::DFRN, Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA],
+ 'network' => [Protocol::DFRN, Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA, Protocol::FEED],
]);
$contacts_title = L10n::t('No contacts');
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'], [
DBA::close($contact_ids_stmt);
}
- $tpl = Renderer::getMarkupTemplate('contact_block.tpl');
+ $tpl = Renderer::getMarkupTemplate('widget/contacts.tpl');
$o = Renderer::replaceMacros($tpl, [
'$contacts' => $contacts_title,
'$nickname' => $profile['nickname'],