forked from mirror/pixelfed
Update Media model, add thumbnailUrl method
This commit is contained in:
parent
612082d043
commit
9c9ebec1ba
1 changed files with 7 additions and 0 deletions
|
@ -23,4 +23,11 @@ class Media extends Model
|
||||||
$url = Storage::url($path);
|
$url = Storage::url($path);
|
||||||
return url($url);
|
return url($url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function thumbnailUrl()
|
||||||
|
{
|
||||||
|
$path = $this->thumbnail_path;
|
||||||
|
$url = Storage::url($path);
|
||||||
|
return url($url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue