From ccaefe3f7fab3ada42d55acca05fe6ec4bc5b435 Mon Sep 17 00:00:00 2001
From: Daniel Supernault <danielsupernault@gmail.com>
Date: Mon, 7 Oct 2019 02:49:23 -0600
Subject: [PATCH] Update Status model, fixes #1637

---
 app/Status.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/Status.php b/app/Status.php
index 94300f338..9cc6cc757 100644
--- a/app/Status.php
+++ b/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);
             }