aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Viewconnections.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-26 16:45:04 -0800
committerzotlabs <mike@macgirvin.com>2018-02-26 16:45:04 -0800
commitafe2ba36904de4d308fb0620ebef52d7eefecda0 (patch)
tree178f0e376f243c7fa048b4e389001234c07bd72e /Zotlabs/Module/Viewconnections.php
parent01776e767d1976663d2c36fd7e6e4431c16c84c1 (diff)
parentfe7fba4789fac2024c4e8e711e2f8a2492c683bd (diff)
downloadvolse-hubzilla-afe2ba36904de4d308fb0620ebef52d7eefecda0.tar.gz
volse-hubzilla-afe2ba36904de4d308fb0620ebef52d7eefecda0.tar.bz2
volse-hubzilla-afe2ba36904de4d308fb0620ebef52d7eefecda0.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'Zotlabs/Module/Viewconnections.php')
-rw-r--r--Zotlabs/Module/Viewconnections.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/Zotlabs/Module/Viewconnections.php b/Zotlabs/Module/Viewconnections.php
index 1f9c03751..8366e1325 100644
--- a/Zotlabs/Module/Viewconnections.php
+++ b/Zotlabs/Module/Viewconnections.php
@@ -44,7 +44,7 @@ class Viewconnections extends \Zotlabs\Web\Controller {
$sql_extra = '';
if(! $is_owner) {
- $abook_flags = " and abook_hidden = 0 ";
+ $abook_flags .= " and abook_hidden = 0 ";
$sql_extra = " and xchan_hidden = 0 ";
}
@@ -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
);
}
}