Update AP helpers, only run MediaStoragePipeline if using cloud storage

pull/2587/head
Daniel Supernault 4 years ago
parent 258b2729d3
commit 77f21b4b33
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -401,7 +401,10 @@ class Helpers {
$media->remote_url = $url;
$media->mime = $type;
$media->save();
MediaStoragePipeline::dispatch($media);
if(config('pixelfed.cloud_storage') == true) {
MediaStoragePipeline::dispatch($media);
}
}
$status->viewType();

Loading…
Cancel
Save