mirror of
https://github.com/friendica/friendica
synced 2025-04-25 20:30:11 +00:00
pass community page permissions through notification feeds
This commit is contained in:
parent
fbc64baf31
commit
664cf8ac8e
2 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue