Merge pull request #915 from zzottel/master

make public delivery to contacts or any connections work again
This commit is contained in:
RedMatrix 2015-03-02 21:43:52 +11:00
commit 5a85096d77

View File

@ -1472,10 +1472,9 @@ function allowed_public_recips($msg) {
return array();
}
$hash = make_xchan_hash($msg['notify']['sender']['guid'],$msg['notify']['sender']['guid_sig']);
if($scope === 'self') {
$hash = make_xchan_hash($msg['notify']['sender']['guid'],$msg['notify']['sender']['guid_sig']);
foreach($recips as $r)
if($r['hash'] === $hash)
return array('hash' => $hash);