소스 검색

Update Status model, fixes #1637

Daniel Supernault 5 년 전
부모
커밋
ccaefe3f7f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/Status.php

+ 2 - 2
app/Status.php

@@ -370,8 +370,8 @@ class Status extends Model
             return $mention->permalink();
         })->toArray();
 
-        if($status->in_reply_to_id != null) {
-            $parent = $status->parent();
+        if($this->in_reply_to_id != null) {
+            $parent = $this->parent();
             if($parent) {
                 $mentions = array_merge([$parent->profile->permalink()], $mentions);
             }