Update Media model, fix remote media preview

pull/2077/head
Daniel Supernault 5 years ago
parent eeca1fbc54
commit 9947050bdf
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -42,9 +42,13 @@ class Media extends Model
public function thumbnailUrl() public function thumbnailUrl()
{ {
if($this->remote_media == true) {
return $this->remote_url;
} else {
$path = $this->thumbnail_path ?? 'public/no-preview.png'; $path = $this->thumbnail_path ?? 'public/no-preview.png';
return url(Storage::url($path)); return url(Storage::url($path));
} }
}
public function thumb() public function thumb()
{ {

Loading…
Cancel
Save