forked from GNUsocial/gnu-social
reinstate lost replies code in OStatusQueueHandler
This commit is contained in:
parent
7759aa51e6
commit
da4ba6a5a9
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user