aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Connections.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-10-01 11:15:29 +0200
committerMario <mario@mariovavti.com>2019-10-01 11:15:29 +0200
commit541146e8ce90d09180dc8c3328482383e42c3738 (patch)
tree41448004a16cdf449dce48fa760265136a600a54 /Zotlabs/Module/Connections.php
parent97b161c5366387b86ee8ac245ef92624e52c5ea2 (diff)
downloadvolse-hubzilla-541146e8ce90d09180dc8c3328482383e42c3738.tar.gz
volse-hubzilla-541146e8ce90d09180dc8c3328482383e42c3738.tar.bz2
volse-hubzilla-541146e8ce90d09180dc8c3328482383e42c3738.zip
Add 'Connect' button for not connected at this location channels
Diffstat (limited to 'Zotlabs/Module/Connections.php')
-rw-r--r--Zotlabs/Module/Connections.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Module/Connections.php b/Zotlabs/Module/Connections.php
index 7c8d71210..fd645d239 100644
--- a/Zotlabs/Module/Connections.php
+++ b/Zotlabs/Module/Connections.php
@@ -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')
);
}
}