aboutsummaryrefslogtreecommitdiffstats
path: root/include/notifier.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-18 21:09:44 -0700
committerFriendika <info@friendika.com>2011-08-18 21:09:44 -0700
commitd2c6c21a88239e956b7e6a3c5a41a8a819502991 (patch)
tree5bc6f118c3b5d6fa6b59de027448e77dbd24dace /include/notifier.php
parent457f8c3e957859972b6b0c8a235d38da0986bcbf (diff)
downloadvolse-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.php20
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) {