aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-01-27 22:25:46 +0100
committerMario Vavti <mario@mariovavti.com>2018-01-27 22:25:46 +0100
commit843d6311112c9174a1731c42a9d257f3f3a0bd0a (patch)
treeebb275fd10c7010a86667e083b2389a9b4407745 /include/text.php
parent2e4e56f7cc696b2c52014f0050294826caa74d7d (diff)
parentbd0f63980ba0d0e606f2dd7a65313f7e150d330a (diff)
downloadvolse-hubzilla-843d6311112c9174a1731c42a9d257f3f3a0bd0a.tar.gz
volse-hubzilla-843d6311112c9174a1731c42a9d257f3f3a0bd0a.tar.bz2
volse-hubzilla-843d6311112c9174a1731c42a9d257f3f3a0bd0a.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index 956f42f7d..8ec6ebace 100644
--- a/include/text.php
+++ b/include/text.php
@@ -973,7 +973,14 @@ function contact_block() {
$contacts = t('Connections');
$micropro = Array();
foreach($r as $rr) {
- $rr['archived'] = (intval($rr['abook_archived']) ? true : false);
+
+ // There is no setting to discover if you are bi-directionally connected
+ // Use the ability to post comments as an indication that this relationship is more
+ // than wishful thinking; even though soapbox channels and feeds will disable it.
+
+ if(! intval(get_abconfig(App::$profile['uid'],$rr['xchan_hash'],'their_perms','post_comments'))) {
+ $rr['archived'] = true;
+ }
$micropro[] = micropro($rr,true,'mpfriend');
}
}