aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-03-19 09:17:39 +0100
committerMario <mario@mariovavti.com>2019-03-19 09:17:39 +0100
commit1742159345dbfd9cc66b03710c9bcc3fc5f93378 (patch)
tree566f9a1f14cc37ac4210b44f905a377e822b74e9 /include/zot.php
parent41888f84bc487cd9c95c2d06e3c4523690c8d64b (diff)
parented8d2cb482fa79a5bd7028e7634baca48895f7d8 (diff)
downloadvolse-hubzilla-1742159345dbfd9cc66b03710c9bcc3fc5f93378.tar.gz
volse-hubzilla-1742159345dbfd9cc66b03710c9bcc3fc5f93378.tar.bz2
volse-hubzilla-1742159345dbfd9cc66b03710c9bcc3fc5f93378.zip
Merge branch 'dev' into 'dev'
messagefilter enhancements and fix for advisory permissions edge case See merge request hubzilla/core!1559
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index c9c01103c..227d82a13 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1712,13 +1712,17 @@ function allowed_public_recips($msg) {
$condensed_recips[] = $rr['hash'];
$results = array();
- $r = q("select channel_hash as hash from channel left join abook on abook_channel = channel_id where abook_xchan = '%s' and channel_removed = 0 ",
+ $r = q("select channel_hash as hash, channel_id from channel left join abook on abook_channel = channel_id where abook_xchan = '%s' and channel_removed = 0 ",
dbesc($hash)
);
if($r) {
- foreach($r as $rr)
+ foreach($r as $rr) {
+ $cfg = get_abconfig($rr['channel_id'],$rr['hash'],'their_perms','view_stream');
+ if((! $cfg) && $scope !== 'any connections')
+ continue;
if(in_array($rr['hash'],$condensed_recips))
$results[] = array('hash' => $rr['hash']);
+ }
}
return $results;
}