]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
tests with Apache ActiveMQ topics (pubsub)
authorFederico Marani <federico.marani@ymail.com>
Sat, 7 Mar 2009 13:48:39 +0000 (13:48 +0000)
committerFederico Marani <federico.marani@ymail.com>
Sat, 7 Mar 2009 13:48:39 +0000 (13:48 +0000)
lib/util.php

index 8ef19f5796702e516f51342949366574e2569b3b..8f1c419f20e86f4bb03bb42d552c31b25b75453e 100644 (file)
@@ -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 {