diff options
author | Friendika <info@friendika.com> | 2011-08-18 21:09:44 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-08-18 21:09:44 -0700 |
commit | d2c6c21a88239e956b7e6a3c5a41a8a819502991 (patch) | |
tree | 5bc6f118c3b5d6fa6b59de027448e77dbd24dace /include/notifier.php | |
parent | 457f8c3e957859972b6b0c8a235d38da0986bcbf (diff) | |
download | volse-hubzilla-d2c6c21a88239e956b7e6a3c5a41a8a819502991.tar.gz volse-hubzilla-d2c6c21a88239e956b7e6a3c5a41a8a819502991.tar.bz2 volse-hubzilla-d2c6c21a88239e956b7e6a3c5a41a8a819502991.zip |
lots more diaspora communications - can see light at the end
Diffstat (limited to 'include/notifier.php')
-rw-r--r-- | include/notifier.php | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/include/notifier.php b/include/notifier.php index 89c36e434..afb907f09 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -504,20 +504,24 @@ function notifier_run($argv, $argc){ case NETWORK_DIASPORA: if(get_config('system','dfrn_only') || (! get_config('diaspora_enabled')) || (! $normal_mode)) break; - - if($target_item['deleted']) { - // diaspora delete, (check for like) - + + if($target_item['verb'] === ACTIVITY_DISLIKE) { + // unsupported + break; + } + elseif($target_item['deleted'] && (! $parent_item['verb'] === ACTIVITY_LIKE)) { + // diaspora delete, + diaspora_send_retraction($target_item,$owner,$contact); break; } elseif($followup) { - // send to owner to relay - + // send comments, likes and retractions of likes to owner to relay + diaspora_send_followup($target_item,$owner,$contact); break; } elseif($target_item['parent'] != $target_item['id']) { - // we are the relay - + // we are the relay - send comments, likes and unlikes to our conversants + diaspora_send_relay($target_item,$owner,$contact); break; } elseif($top_level) { |