]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
reinstate lost replies code in OStatusQueueHandler
authorEvan Prodromou <evan@status.net>
Wed, 29 Jun 2011 17:51:19 +0000 (13:51 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 29 Jun 2011 17:51:19 +0000 (13:51 -0400)
plugins/OStatus/lib/ostatusqueuehandler.php

index d7dc921ad678e08969c9badbe44a13b50247e11a..568e8fe391f318c29046491b8a03298eee522ed7 100644 (file)
@@ -51,7 +51,7 @@ class OStatusQueueHandler extends QueueHandler
         assert($notice instanceof Notice);
 
         $this->notice = $notice;
-        $this->user = User::staticGet($notice->profile_id);
+        $this->user = User::staticGet('id', $notice->profile_id);
 
         $this->pushUser();
 
@@ -63,6 +63,13 @@ class OStatusQueueHandler extends QueueHandler
                 $this->pushGroup($group->id);
             }
         }
+        
+        foreach ($notice->getReplies() as $profile_id) {
+            $oprofile = Ostatus_profile::staticGet('profile_id', $profile_id);
+            if ($oprofile) {
+                $this->pingReply($oprofile);
+            }
+        }
 
         if (!empty($this->notice->reply_to)) {
             $replyTo = Notice::staticGet('id', $this->notice->reply_to);