소스 검색

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}";