mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 08:44:02 +00:00
Update AP helpers, only run MediaStoragePipeline if using cloud storage
This commit is contained in:
parent
258b2729d3
commit
77f21b4b33
1 changed files with 4 additions and 1 deletions
|
@ -401,8 +401,11 @@ class Helpers {
|
||||||
$media->remote_url = $url;
|
$media->remote_url = $url;
|
||||||
$media->mime = $type;
|
$media->mime = $type;
|
||||||
$media->save();
|
$media->save();
|
||||||
|
|
||||||
|
if(config('pixelfed.cloud_storage') == true) {
|
||||||
MediaStoragePipeline::dispatch($media);
|
MediaStoragePipeline::dispatch($media);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$status->viewType();
|
$status->viewType();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue