From a6b7898d982dcef1a2ddf456b4948856ee1728b7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 23 Dec 2018 19:07:49 -0700 Subject: [PATCH] Update Status model --- app/Status.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Status.php b/app/Status.php index e9c40ca5..73b34382 100644 --- a/app/Status.php +++ b/app/Status.php @@ -19,7 +19,7 @@ class Status extends Model */ protected $dates = ['deleted_at']; - protected $fillable = ['profile_id', 'visibility', 'in_reply_to_id', 'reblog_of_id']; + protected $fillable = ['profile_id', 'visibility', 'in_reply_to_id', 'reblog_of_id', 'type']; const STATUS_TYPES = [ 'text', @@ -90,13 +90,13 @@ class Status extends Model public function url() { - if($this->url) { - return $this->url; + if($this->uri) { + return $this->uri; } $id = $this->id; $username = $this->profile->username; - $path = config('app.url')."/p/{$username}/{$id}"; - return url($path); + $path = url(config('app.url')."/p/{$username}/{$id}"); + return $path; } public function permalink($suffix = '/activity')