diaspora's spammy permission model seems to have leaked through our firehose. Don't let it.
This commit is contained in:
parent
3466547784
commit
54a9fb1774
@ -1547,8 +1547,11 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false,$reque
|
|||||||
|
|
||||||
$channel = $r[0];
|
$channel = $r[0];
|
||||||
|
|
||||||
// allow public postings to the sys channel regardless of permissions
|
// allow public postings to the sys channel regardless of permissions, but not
|
||||||
if(($channel['channel_pageflags'] & PAGE_SYSTEM) && (! $arr['item_private'])) {
|
// for comments travelling upstream. Wait and catch them on the way down.
|
||||||
|
// They may have been blocked by the owner.
|
||||||
|
|
||||||
|
if(($channel['channel_pageflags'] & PAGE_SYSTEM) && (! $arr['item_private']) && (! $relay)) {
|
||||||
$local_public = true;
|
$local_public = true;
|
||||||
|
|
||||||
$r = q("select xchan_flags from xchan where xchan_hash = '%s' limit 1",
|
$r = q("select xchan_flags from xchan where xchan_hash = '%s' limit 1",
|
||||||
|
Reference in New Issue
Block a user