kopia lustrzana https://github.com/pixelfed/pixelfed
Update Media model, use cloud filesystem url if enabled instead of cdn_url to easily update S3 media urls
rodzic
b128053d54
commit
e6bc57d7b6
|
@ -38,7 +38,7 @@ class Media extends Model
|
|||
public function url()
|
||||
{
|
||||
if($this->cdn_url) {
|
||||
return $this->cdn_url;
|
||||
return Storage::disk(config('filesystems.cloud'))->url($this->media_path);
|
||||
}
|
||||
|
||||
if($this->remote_media && $this->remote_url) {
|
||||
|
|
|
@ -82,6 +82,7 @@ return [
|
|||
],
|
||||
'root' => env('DO_SPACES_ROOT',''),
|
||||
'throw' => true,
|
||||
'url' => env('AWS_URL'),
|
||||
],
|
||||
|
||||
'backup' => [
|
||||
|
|
Ładowanie…
Reference in New Issue