Merge pull request #901 from zzottel/master
also deliver public posts to channels with channel_w_stream = PERMS_AUTHED
This commit is contained in:
commit
6dfc41ac7a
@ -1315,9 +1315,9 @@ function public_recips($msg) {
|
||||
|
||||
|
||||
if($msg['notify']['sender']['url'] === z_root())
|
||||
$sql = " where (( " . $col . " & " . PERMS_NETWORK . " )>0 or ( " . $col . " & " . PERMS_SITE . " )>0 or ( " . $col . " & " . PERMS_PUBLIC . ")>0) ";
|
||||
$sql = " where (( " . $col . " & " . PERMS_NETWORK . " )>0 or ( " . $col . " & " . PERMS_SITE . " )>0 or ( " . $col . " & " . PERMS_PUBLIC . ")>0 or ( " . $col . " & " . PERMS_AUTHED . ")>0) ";
|
||||
else
|
||||
$sql = " where (( " . $col . " & " . PERMS_NETWORK . " )>0 or ( " . $col . " & " . PERMS_PUBLIC . ")>0) ";
|
||||
$sql = " where (( " . $col . " & " . PERMS_NETWORK . " )>0 or ( " . $col . " & " . PERMS_PUBLIC . ")>0 or ( " . $col . " & " . PERMS_AUTHED . ")>0) ";
|
||||
|
||||
|
||||
$r = q("select channel_hash as hash from channel $sql or channel_hash = '%s' ",
|
||||
|
Reference in New Issue
Block a user