aboutsummaryrefslogtreecommitdiffstats
path: root/include/deliver.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-02 15:28:20 -0800
committerfriendica <info@friendica.com>2014-11-02 15:28:20 -0800
commit285d6f61e4bf8aeaa3294ac4b7af43366a1448e9 (patch)
tree0034f3ee015954c4ea0b41c92d40d4e8c522a6e8 /include/deliver.php
parent4274a2d06c9ee2c28acba0dac3d5353e13776581 (diff)
downloadvolse-hubzilla-285d6f61e4bf8aeaa3294ac4b7af43366a1448e9.tar.gz
volse-hubzilla-285d6f61e4bf8aeaa3294ac4b7af43366a1448e9.tar.bz2
volse-hubzilla-285d6f61e4bf8aeaa3294ac4b7af43366a1448e9.zip
I'm going to try again with the conversation request packets. I've looked this over and tested a lot of edge cases, and thought about from every angle I can think of to prevent looping. I don't *think* this can loop. I also doubt that this is the problem at friendicared.de, but I don't know for sure what that problem might be.
Diffstat (limited to 'include/deliver.php')
-rw-r--r--include/deliver.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/deliver.php b/include/deliver.php
index 8f6ba543d..729018448 100644
--- a/include/deliver.php
+++ b/include/deliver.php
@@ -40,6 +40,10 @@ function deliver_run($argv, $argc) {
$notify = json_decode($r[0]['outq_notify'],true);
+ // Check if this is a conversation request packet. It won't have outq_msg
+ // but will be an encrypted packet - so will need to be handed off to
+ // web delivery rather than processed inline.
+
$sendtoweb = false;
if(array_key_exists('iv',$notify) && (! $r[0]['outq_msg']))
$sendtoweb = true;
@@ -48,8 +52,7 @@ function deliver_run($argv, $argc) {
logger('deliver: local delivery', LOGGER_DEBUG);
// local delivery
// we should probably batch these and save a few delivery processes
- // If there is no outq_msg, this is a refresh_all message which does not require local handling
- // also send 'request' packets to the webservice so it can decode the packet
+
if($r[0]['outq_msg']) {
$m = json_decode($r[0]['outq_msg'],true);
if(array_key_exists('message_list',$m)) {