aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2015-03-02 11:05:03 +0100
committerzottel <github@zottel.net>2015-03-02 11:05:03 +0100
commite4a2e353d8bc02f6a4e61d6cca999a098f34f593 (patch)
tree86b2b501e5bbe8074dce5b734bc8d71c18e182ef
parent7d0783c4dd08b63033d403d462ee2f30ef7100a6 (diff)
downloadvolse-hubzilla-e4a2e353d8bc02f6a4e61d6cca999a098f34f593.tar.gz
volse-hubzilla-e4a2e353d8bc02f6a4e61d6cca999a098f34f593.tar.bz2
volse-hubzilla-e4a2e353d8bc02f6a4e61d6cca999a098f34f593.zip
make public delivery to contacts or any connections work again
$hash wasn't defined in this case
-rw-r--r--include/zot.php5
1 files changed, 2 insertions, 3 deletions
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);