summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorFederico Marani <federico.marani@ymail.com>2009-03-07 13:48:39 +0000
committerFederico Marani <federico.marani@ymail.com>2009-03-07 13:48:39 +0000
commita389f157baddafa91347c27194805580b1373e30 (patch)
tree77481da4d6bd35c81991ac0d16fa89f41c3e110d /lib/util.php
parent80d0423026b0bc14c8da820fff7905ba9c0a5d0e (diff)
tests with Apache ActiveMQ topics (pubsub)
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 8ef19f579..8f1c419f2 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1159,6 +1159,20 @@ function common_enqueue_notice($notice)
}
common_log(LOG_DEBUG, 'complete remote queueing notice ID = ' . $notice->id . ' for ' . $transport);
}
+ $con->send('/topic/laconica.'.$notice->profile_id,
+ $notice->content,
+ array(
+ 'profile_id' => $notice->profile_id,
+ 'created' => $notice->created
+ )
+ );
+ $con->send('/topic/laconica.allusers',
+ $notice->content,
+ array(
+ 'profile_id' => $notice->profile_id,
+ 'created' => $notice->created
+ )
+ );
$result = true;
}
else {