diff options
author | Zach Prezkuta <fermion@gmx.com> | 2012-06-02 23:56:42 -0600 |
---|---|---|
committer | Zach Prezkuta <fermion@gmx.com> | 2012-06-03 14:53:30 -0600 |
commit | cde0de965f8f2fde2b289ebcb1c1814ffa303ca6 (patch) | |
tree | dd002c200b34ac7dca92406ba2aa1915d9219624 /include/delivery.php | |
parent | 77962aa79df5671e206635cc6980e4b1ac969bf9 (diff) | |
download | volse-hubzilla-cde0de965f8f2fde2b289ebcb1c1814ffa303ca6.tar.gz volse-hubzilla-cde0de965f8f2fde2b289ebcb1c1814ffa303ca6.tar.bz2 volse-hubzilla-cde0de965f8f2fde2b289ebcb1c1814ffa303ca6.zip |
first shot at getting like/unlike functions to work consistently
Diffstat (limited to 'include/delivery.php')
-rw-r--r-- | include/delivery.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/delivery.php b/include/delivery.php index 235b766c5..e6cfc8155 100644 --- a/include/delivery.php +++ b/include/delivery.php @@ -509,17 +509,17 @@ function delivery_run($argv, $argc){ // unsupported break; } - elseif(($target_item['deleted']) && ($target_item['uri'] === $target_item['parent-uri']) && ($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['uri'] !== $target_item['parent-uri']) { + // we are the relay - send comments, likes and relayable_retractions to our conversants + logger('delivery: diaspora relay: ' . $loc); - logger('delivery: diaspora relay: ' . $loc); - - // we are the relay - send comments, likes, unlikes and relayable_retractions to our conversants diaspora_send_relay($target_item,$owner,$contact,$public_message); break; } |