Daniel Supernault 6 лет назад
Родитель
Сommit
f39fec44f5
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app/Status.php

+ 3 - 0
app/Status.php

@@ -90,6 +90,9 @@ class Status extends Model
 
     public function url()
     {
+        if($this->url) {
+            return $this->url;
+        }
         $id = $this->id;
         $username = $this->profile->username;
         $path = config('app.url')."/p/{$username}/{$id}";