mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Status model, fixes #1637
This commit is contained in:
parent
c952442077
commit
ccaefe3f7f
1 changed files with 2 additions and 2 deletions
|
@ -370,8 +370,8 @@ class Status extends Model
|
||||||
return $mention->permalink();
|
return $mention->permalink();
|
||||||
})->toArray();
|
})->toArray();
|
||||||
|
|
||||||
if($status->in_reply_to_id != null) {
|
if($this->in_reply_to_id != null) {
|
||||||
$parent = $status->parent();
|
$parent = $this->parent();
|
||||||
if($parent) {
|
if($parent) {
|
||||||
$mentions = array_merge([$parent->profile->permalink()], $mentions);
|
$mentions = array_merge([$parent->profile->permalink()], $mentions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue