diff options
author | friendica <info@friendica.com> | 2014-08-28 21:49:13 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-28 21:49:13 -0700 |
commit | 8a62b824f98ca55c94a2fc04afbea0c118d44486 (patch) | |
tree | 728a14a58e2401696bf6fd5e4f53fef809f46438 /include/queue.php | |
parent | 95def2a247eca54a52744e405e837d5810cca83d (diff) | |
download | volse-hubzilla-8a62b824f98ca55c94a2fc04afbea0c118d44486.tar.gz volse-hubzilla-8a62b824f98ca55c94a2fc04afbea0c118d44486.tar.bz2 volse-hubzilla-8a62b824f98ca55c94a2fc04afbea0c118d44486.zip |
lots of little Diaspora issues
Diffstat (limited to 'include/queue.php')
-rw-r--r-- | include/queue.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/queue.php b/include/queue.php index 239d61fc0..378cc7816 100644 --- a/include/queue.php +++ b/include/queue.php @@ -46,6 +46,23 @@ function queue_run($argv, $argc){ foreach($r as $rr) { if(in_array($rr['outq_posturl'],$deadguys)) continue; + + if($rr['outq_driver'] === 'post') { + $result = z_post_url($rr['outq_posturl'],$rr['outq_msg']); + if($result['success'] && $result['return_code'] < 300) { + logger('deliver: queue post success to ' . $rr['outq_posturl'], LOGGER_DEBUG); + $y = q("update outq set outq_delivered = '%s' where outq_hash = '%s' limit 1", + dbesc($rr['ouq_hash']) + ); + } + else { + $y = q("update outq set outq_updated = '%s' where outq_hash = '%s' limit 1", + dbesc(datetime_convert()), + dbesc($rr['outq_hash']) + ); + } + continue; + } $result = zot_zot($rr['outq_posturl'],$rr['outq_notify']); if($result['success']) { zot_process_response($rr['outq_posturl'],$result, $rr); |