1
0
Fork 0
forked from mirror/pixelfed

Update Media model, add thumbnailUrl method

This commit is contained in:
Daniel Supernault 2018-07-12 10:39:55 -06:00
parent 612082d043
commit 9c9ebec1ba

View file

@ -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);
}
} }