aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Connections.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-24 19:42:39 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-24 19:42:39 +0100
commitc618bfc607498998916f01fd9c6985c2ecd47356 (patch)
tree28f5feda66ce65a80743a138363dc19c999ba4b4 /Zotlabs/Module/Connections.php
parentf6d024cb3f2663cd1d61e5fc18546adb93b9a7db (diff)
downloadvolse-hubzilla-c618bfc607498998916f01fd9c6985c2ecd47356.tar.gz
volse-hubzilla-c618bfc607498998916f01fd9c6985c2ecd47356.tar.bz2
volse-hubzilla-c618bfc607498998916f01fd9c6985c2ecd47356.zip
mark connections where we do not have post_comments permissions with an no entry sign.
Diffstat (limited to 'Zotlabs/Module/Connections.php')
-rw-r--r--Zotlabs/Module/Connections.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Connections.php b/Zotlabs/Module/Connections.php
index 255731c9c..55e716ace 100644
--- a/Zotlabs/Module/Connections.php
+++ b/Zotlabs/Module/Connections.php
@@ -245,6 +245,11 @@ class Connections extends \Zotlabs\Web\Controller {
((intval($rr['abook_blocked'])) ? t('Blocked') : ''),
((intval($rr['abook_not_here'])) ? t('Not connected at this location') : '')
);
+
+ $oneway = false;
+ if(! intval(get_abconfig(local_channel(),$rr['xchan_hash'],'their_perms','post_comments'))) {
+ $oneway = true;
+ }
foreach($status as $str) {
if(!$str)
@@ -283,7 +288,8 @@ class Connections extends \Zotlabs\Web\Controller {
'ignore_hover' => t('Ignore connection'),
'ignore' => ((! $rr['abook_ignored']) ? t('Ignore') : false),
'recent_label' => t('Recent activity'),
- 'recentlink' => z_root() . '/network/?f=&cid=' . intval($rr['abook_id'])
+ 'recentlink' => z_root() . '/network/?f=&cid=' . intval($rr['abook_id']),
+ 'oneway' => $oneway
);
}
}