aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Viewconnections.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/Viewconnections.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/Viewconnections.php')
-rw-r--r--Zotlabs/Module/Viewconnections.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/Zotlabs/Module/Viewconnections.php b/Zotlabs/Module/Viewconnections.php
index 1f9c03751..e024f1c5a 100644
--- a/Zotlabs/Module/Viewconnections.php
+++ b/Zotlabs/Module/Viewconnections.php
@@ -69,8 +69,13 @@ class Viewconnections extends \Zotlabs\Web\Controller {
$contacts = array();
foreach($r as $rr) {
+
+ $oneway = false;
+ if(! intval(get_abconfig(\App::$profile['uid'],$rr['xchan_hash'],'their_perms','post_comments'))) {
+ $oneway = true;
+ }
- $url = chanlink_hash($rr['xchan_hash']);
+ $url = chanlink_hash($rr['xchan_hash']);
if($url) {
$contacts[] = array(
'id' => $rr['abook_id'],
@@ -83,6 +88,7 @@ class Viewconnections extends \Zotlabs\Web\Controller {
'sparkle' => '',
'itemurl' => $rr['url'],
'network' => '',
+ 'oneway' => $oneway
);
}
}