Update Status model

This commit is contained in:
Daniel Supernault 2018-06-09 17:32:07 -06:00
parent 0cc736d109
commit 2726f90584

View file

@ -25,6 +25,9 @@ class Status extends Model
public function thumb()
{
if($this->media->count() == 0) {
return "data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";
}
return url(Storage::url($this->firstMedia()->thumbnail_path));
}