mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update Status model
This commit is contained in:
parent
1cba67b781
commit
f39fec44f5
1 changed files with 3 additions and 0 deletions
|
@ -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}";
|
||||||
|
|
Loading…
Reference in a new issue