Add 'Connect' button for not connected at this location channels

This commit is contained in:
Max Kostikov
2019-10-01 11:15:29 +02:00
committed by Mario
parent 97b161c536
commit 541146e8ce
4 changed files with 15055 additions and 14957 deletions

View File

@@ -322,7 +322,10 @@ class Connections extends \Zotlabs\Web\Controller {
'ignore' => ((! $rr['abook_ignored']) ? t('Ignore') : false),
'recent_label' => t('Recent activity'),
'recentlink' => z_root() . '/network/?f=&cid=' . intval($rr['abook_id']) . '&name=' . $rr['xchan_name'],
'oneway' => $oneway
'oneway' => $oneway,
'connect' => (intval($rr['abook_not_here']) ? t('Connect') : ''),
'follow' => z_root() . '/follow/?f=&url=' . urlencode($rr['xchan_addr']) . '&interactive=0',
'connect_hover' => t('Connect at this location')
);
}
}