mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Media Model, add S3 support
This commit is contained in:
parent
85852f232b
commit
c456fa7ef1
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class Media extends Model
|
|||
$url = $this->remote_url;
|
||||
} else {
|
||||
$path = $this->media_path;
|
||||
$url = Storage::url($path);
|
||||
$url = $this->cdn_url ?? Storage::url($path);
|
||||
}
|
||||
|
||||
return url($url);
|
||||
|
|
Loading…
Reference in a new issue