aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-06-02 23:56:42 -0600
committerZach Prezkuta <fermion@gmx.com>2012-06-03 14:53:30 -0600
commitcde0de965f8f2fde2b289ebcb1c1814ffa303ca6 (patch)
treedd002c200b34ac7dca92406ba2aa1915d9219624 /include/notifier.php
parent77962aa79df5671e206635cc6980e4b1ac969bf9 (diff)
downloadvolse-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/notifier.php')
-rw-r--r--include/notifier.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/notifier.php b/include/notifier.php
index be50366d5..f0a1940d4 100644
--- a/include/notifier.php
+++ b/include/notifier.php
@@ -738,18 +738,19 @@ function notifier_run($argv, $argc){
// unsupported
break;
}
- elseif(($target_item['deleted']) && (($target_item['uri'] === $target_item['parent-uri']) || $followup) && ($target_item['verb'] !== ACTIVITY_LIKE)) {
- // diaspora delete, including relayable_retractions that need to be relayed
+ elseif(($target_item['deleted']) && (($target_item['uri'] === $target_item['parent-uri']) || $followup)) {
+ // send both top-level retractions and relayable retractions for owner to relay
diaspora_send_retraction($target_item,$owner,$contact);
break;
}
elseif($followup) {
- // send comments, likes and retractions of likes to owner to relay
+ // send comments and likes to owner to relay
diaspora_send_followup($target_item,$owner,$contact);
break;
}
elseif($target_item['uri'] !== $target_item['parent-uri']) {
- // we are the relay - send comments, likes, unlikes and relayable_retractions to our conversants
+ // we are the relay - send comments, likes and relayable_retractions
+ // (of comments and likes) to our conversants
diaspora_send_relay($target_item,$owner,$contact);
break;
}