diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-18 03:02:51 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-18 03:02:51 -0700 |
commit | 664cf8ac8e5d35e8b9a4df35b646a00fd76e212b (patch) | |
tree | 64f6df1c197a1e655208ff270dbc83d63a9f2fb6 /include/items.php | |
parent | fbc64baf31581de206a20b42fde667b1374d017f (diff) | |
download | volse-hubzilla-664cf8ac8e5d35e8b9a4df35b646a00fd76e212b.tar.gz volse-hubzilla-664cf8ac8e5d35e8b9a4df35b646a00fd76e212b.tar.bz2 volse-hubzilla-664cf8ac8e5d35e8b9a4df35b646a00fd76e212b.zip |
pass community page permissions through notification feeds
Diffstat (limited to 'include/items.php')
-rw-r--r-- | include/items.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 7647eed5c..e9277f114 100644 --- a/include/items.php +++ b/include/items.php @@ -515,10 +515,10 @@ function get_item_contact($item,$contacts) { } -function dfrn_deliver($contact,$atom,$debugging = false) { +function dfrn_deliver($owner,$contact,$atom,$debugging = false) { - if((! strlen($contact['dfrn-id'])) && (! $contact['duplex'])) + if((! strlen($contact['dfrn-id'])) && (! $contact['duplex']) && (! ($owner['page-flags'] == PAGE_COMMUNITY))) return 3; $idtosend = $orig_id = (($contact['dfrn-id']) ? $contact['dfrn-id'] : $contact['issued-id']); @@ -577,6 +577,9 @@ function dfrn_deliver($contact,$atom,$debugging = false) { if(($contact['rel']) && ($contact['rel'] != REL_FAN) && (! $contact['blocked']) && (! $contact['readonly'])) { $postvars['data'] = $atom; } + elseif($owner['page-flags'] == PAGE_COMMUNITY) { + $postvars['data'] = $atom; + } else { $postvars['data'] = str_replace('<dfrn:comment-allow>1','<dfrn:comment-allow>0',$atom); } |