diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-09-22 19:02:20 +0200 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-09-22 19:02:20 +0200 |
commit | d7c9f2ccba1f0a19c3b60281589ab7dd611c744b (patch) | |
tree | 9cf73bfaed9b8ad3c7c3239ce2b8e1baa57c9b62 /include/zot.php | |
parent | cbd7f8906674f6373f0dc6a8f79ecfcd4ce4bd8d (diff) | |
parent | 7dd61c05dcf169807aed91d305ea235bcaa9035e (diff) | |
download | volse-hubzilla-d7c9f2ccba1f0a19c3b60281589ab7dd611c744b.tar.gz volse-hubzilla-d7c9f2ccba1f0a19c3b60281589ab7dd611c744b.tar.bz2 volse-hubzilla-d7c9f2ccba1f0a19c3b60281589ab7dd611c744b.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php index f728d8fb9..4b4be477f 100644 --- a/include/zot.php +++ b/include/zot.php @@ -957,7 +957,7 @@ function zot_process_response($hub, $arr, $outq) { logger('zot_process_response: headers: ' . print_r($arr['header'],true), LOGGER_DATA); } - if(array_key_exists('delivery_report',$x)) { + if(is_array($x) && array_key_exists('delivery_report',$x) && is_array($x['delivery_report'])) { foreach($x['delivery_report'] as $xx) { if(is_array($xx) && array_key_exists('message_id',$xx)) { q("insert into dreport ( dreport_mid, dreport_site, dreport_recip, dreport_result, dreport_time, dreport_xchan ) values ( '%s', '%s','%s','%s','%s','%s' ) ", @@ -971,7 +971,11 @@ function zot_process_response($hub, $arr, $outq) { } } } - + + q("delete from dreport where dreport_queue = '%s' limit 1", + dbesc($outq['outq_hash']) + ); + // update the timestamp for this site q("update site set site_dead = 0, site_update = '%s' where site_url = '%s'", @@ -1579,6 +1583,14 @@ function process_delivery($sender, $arr, $deliveries, $relay, $public = false, $ $DR->addto_recipient($channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>'); +// uncomment this once we find out what's stopping the clone sync of the item from working +// if($d['hash'] === $sender['hash']) { +// $DR->update('self delivery ignored'); +// $result[] = $DR->get(); +// continue; +// } + + // allow public postings to the sys channel regardless of permissions, but not // for comments travelling upstream. Wait and catch them on the way down. // They may have been blocked by the owner. |