瀏覽代碼

Update Status model

Daniel Supernault 6 年之前
父節點
當前提交
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}";