1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 08:44:02 +00:00

Update AP Helpers, use MediaStoragePipeline

This commit is contained in:
Daniel Supernault 2021-01-24 13:32:20 -07:00
parent be6d12fcb6
commit 01a1ffd64a
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -27,6 +27,7 @@ use App\Services\ActivityPubFetchService;
use App\Services\ActivityPubDeliveryService;
use App\Services\MediaPathService;
use App\Services\MediaStorageService;
use App\Jobs\MediaPipeline\MediaStoragePipeline;
class Helpers {
@ -400,6 +401,7 @@ class Helpers {
$media->remote_url = $url;
$media->mime = $type;
$media->save();
MediaStoragePipeline::dispatch($media);
}
$status->viewType();