From da4ba6a5a91037ad263fa9eae9b9454a2d7f5cf1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 29 Jun 2011 13:51:19 -0400 Subject: [PATCH] reinstate lost replies code in OStatusQueueHandler --- plugins/OStatus/lib/ostatusqueuehandler.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); -- 2.39.5