From: Evan Prodromou Date: Wed, 29 Jun 2011 17:51:19 +0000 (-0400) Subject: reinstate lost replies code in OStatusQueueHandler X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=da4ba6a5a91037ad263fa9eae9b9454a2d7f5cf1;p=quix0rs-gnu-social.git reinstate lost replies code in OStatusQueueHandler --- diff --git a/plugins/OStatus/lib/ostatusqueuehandler.php b/plugins/OStatus/lib/ostatusqueuehandler.php index d7dc921ad6..568e8fe391 100644 --- a/plugins/OStatus/lib/ostatusqueuehandler.php +++ b/plugins/OStatus/lib/ostatusqueuehandler.php @@ -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);