Explorar o código

Update Status model

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
f39fec44f5
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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}";