reinstate lost replies code in OStatusQueueHandler

This commit is contained in:
Evan Prodromou 2011-06-29 13:51:19 -04:00
parent 7759aa51e6
commit da4ba6a5a9

View 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();
@ -64,6 +64,13 @@ class OStatusQueueHandler extends QueueHandler
}
}
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);
if (!empty($replyTo)) {