From: Federico Marani Date: Sat, 7 Mar 2009 13:48:39 +0000 (+0000) Subject: tests with Apache ActiveMQ topics (pubsub) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a389f157baddafa91347c27194805580b1373e30;p=quix0rs-gnu-social.git tests with Apache ActiveMQ topics (pubsub) --- diff --git a/lib/util.php b/lib/util.php index 8ef19f5796..8f1c419f20 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 {