use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Contact;
-use Friendica\Model\Group;
+use Friendica\Model\Circle;
use Friendica\Module;
use Friendica\Module\Response;
use Friendica\Network\HTTPException;
}
$vcard_widget = Widget\VCard::getHTML($contact);
- $groups_widget = '';
+ $circles_widget = '';
if (!in_array($localRelationship->rel, [Contact::NOTHING, Contact::SELF])) {
- $groups_widget = Group::sidebarWidget('contact', 'group', 'full', 'everyone', $data['user']);
+ $circles_widget = Circle::sidebarWidget('contact', 'circle', 'full', 'everyone', $data['user']);
}
- $this->page['aside'] .= $vcard_widget . $groups_widget;
+ $this->page['aside'] .= $vcard_widget . $circles_widget;
$o = '';
Nav::setSelected('contact');
$relation_text = '';
}
- if (!in_array($contact['network'], array_merge(Protocol::FEDERATED, [Protocol::TWITTER]))) {
+ if (!Protocol::supportsFollow($contact['network'])) {
$relation_text = '';
}
$localRelationship->fetchFurtherInformation,
$this->t('Fetch information like preview pictures, title and teaser from the feed item. You can activate this if the feed doesn\'t contain much text. Keywords are taken from the meta header in the feed item and are posted as hash tags.'),
[
- '0' => $this->t('Disabled'),
- '1' => $this->t('Fetch information'),
- '3' => $this->t('Fetch keywords'),
- '2' => $this->t('Fetch information and keywords')
+ Entity\LocalRelationship::FFI_NONE => $this->t('Disabled'),
+ Entity\LocalRelationship::FFI_INFORMATION => $this->t('Fetch information'),
+ Entity\LocalRelationship::FFI_KEYWORD => $this->t('Fetch keywords'),
+ Entity\LocalRelationship::FFI_BOTH => $this->t('Fetch information and keywords')
]
];
}
'$remote_self' => [
'remote_self',
$this->t('Mirror postings from this contact'),
- $localRelationship->isRemoteSelf,
+ $localRelationship->remoteSelf,
$this->t('Mark this contact as remote_self, this will cause friendica to repost new entries from this contact.'),
$remote_self_options
],
];
}
- if (in_array($contact['network'], Protocol::NATIVE_SUPPORT)) {
+ if (Protocol::supportsProbe($contact['network'])) {
$contact_actions['updateprofile'] = [
'label' => $this->t('Refetch contact data'),
'url' => 'contact/' . $contact['id'] . '/updateprofile?t=' . $formSecurityToken,