From e4a2e353d8bc02f6a4e61d6cca999a098f34f593 Mon Sep 17 00:00:00 2001 From: zottel Date: Mon, 2 Mar 2015 11:05:03 +0100 Subject: make public delivery to contacts or any connections work again $hash wasn't defined in this case --- include/zot.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index b09f65b7b..e1c780742 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1472,10 +1472,9 @@ function allowed_public_recips($msg) { return array(); } - if($scope === 'self') { - - $hash = make_xchan_hash($msg['notify']['sender']['guid'],$msg['notify']['sender']['guid_sig']); + $hash = make_xchan_hash($msg['notify']['sender']['guid'],$msg['notify']['sender']['guid_sig']); + if($scope === 'self') { foreach($recips as $r) if($r['hash'] === $hash) return array('hash' => $hash); -- cgit v1.2.3