mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update Media model, fix url methods
This commit is contained in:
parent
6b411d23b5
commit
4a70e18596
1 changed files with 0 additions and 8 deletions
|
@ -29,10 +29,6 @@ class Media extends Model
|
|||
|
||||
public function url()
|
||||
{
|
||||
if($this->mime === 'video/mp4') {
|
||||
return url(Storage::url($this->thumbnail_path ?? 'public/no-preview.png'));
|
||||
}
|
||||
|
||||
if($this->cdn_url) {
|
||||
return $this->cdn_url;
|
||||
}
|
||||
|
@ -46,10 +42,6 @@ class Media extends Model
|
|||
|
||||
public function thumbnailUrl()
|
||||
{
|
||||
if($this->mime === 'video/mp4') {
|
||||
return url(Storage::url($this->thumbnail_path ?? 'public/no-preview.png'));
|
||||
}
|
||||
|
||||
if($this->thumbnail_url) {
|
||||
return $this->thumbnail_url;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue