Update Status model

This commit is contained in:
Daniel Supernault 2018-12-17 23:40:35 -07:00
parent 1cba67b781
commit f39fec44f5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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