make public delivery to contacts or any connections work again

$hash wasn't defined in this case
This commit is contained in:
zottel 2015-03-02 11:05:03 +01:00
parent 7d0783c4dd
commit e4a2e353d8

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);