mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-26 00:39:40 +00:00
Update Status model
This commit is contained in:
parent
0cc736d109
commit
2726f90584
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ class Status extends Model
|
||||||
|
|
||||||
public function thumb()
|
public function thumb()
|
||||||
{
|
{
|
||||||
|
if($this->media->count() == 0) {
|
||||||
|
return "data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";
|
||||||
|
}
|
||||||
return url(Storage::url($this->firstMedia()->thumbnail_path));
|
return url(Storage::url($this->firstMedia()->thumbnail_path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue