1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Update Media Model, add S3 support

This commit is contained in:
Daniel Supernault 2019-01-11 21:28:08 -07:00
parent 85852f232b
commit c456fa7ef1
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -23,7 +23,7 @@ class Media extends Model
$url = $this->remote_url; $url = $this->remote_url;
} else { } else {
$path = $this->media_path; $path = $this->media_path;
$url = Storage::url($path); $url = $this->cdn_url ?? Storage::url($path);
} }
return url($url); return url($url);