diff options
author | friendica <info@friendica.com> | 2012-06-03 14:48:28 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-06-03 14:48:28 -0700 |
commit | 9f4b89726176f9596cf3330a68cfab8cab5ab361 (patch) | |
tree | 688f64270521b0c47eaacae020e2ba92274fddeb /include/delivery.php | |
parent | 0b657aa2357bf8785302b55e2cafb397d67cb377 (diff) | |
parent | a66baf29188248fd83ccdf7053a0cf589a9fa8af (diff) | |
download | volse-hubzilla-9f4b89726176f9596cf3330a68cfab8cab5ab361.tar.gz volse-hubzilla-9f4b89726176f9596cf3330a68cfab8cab5ab361.tar.bz2 volse-hubzilla-9f4b89726176f9596cf3330a68cfab8cab5ab361.zip |
Merge https://github.com/friendica/friendica into pull
Diffstat (limited to 'include/delivery.php')
-rw-r--r-- | include/delivery.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/delivery.php b/include/delivery.php index 32943d5da..e6cfc8155 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -113,6 +113,7 @@ function delivery_run($argv, $argc){ $uid = $r[0]['uid']; $updated = $r[0]['edited']; + // The following seems superfluous. We've already checked for "if (! intval($r[0]['parent']))" a few lines up if(! $parent_id) continue; @@ -508,17 +509,17 @@ function delivery_run($argv, $argc){ // unsupported break; } - elseif(($target_item['deleted']) && ($target_item['verb'] !== ACTIVITY_LIKE)) { - logger('delivery: diaspora retract: ' . $loc); - // diaspora delete, + elseif(($target_item['deleted']) && ($target_item['uri'] === $target_item['parent-uri'])) { + // top-level retraction + logger('delivery: diaspora retract: ' . $loc); + diaspora_send_retraction($target_item,$owner,$contact,$public_message); break; } - elseif($target_item['parent'] != $target_item['id']) { - - logger('delivery: diaspora relay: ' . $loc); + elseif($target_item['uri'] !== $target_item['parent-uri']) { + // we are the relay - send comments, likes and relayable_retractions to our conversants + logger('delivery: diaspora relay: ' . $loc); - // we are the relay - send comments, likes and unlikes to our conversants diaspora_send_relay($target_item,$owner,$contact,$public_message); break; } |