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:
parent
be6d12fcb6
commit
01a1ffd64a
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ use App\Services\ActivityPubFetchService;
|
||||||
use App\Services\ActivityPubDeliveryService;
|
use App\Services\ActivityPubDeliveryService;
|
||||||
use App\Services\MediaPathService;
|
use App\Services\MediaPathService;
|
||||||
use App\Services\MediaStorageService;
|
use App\Services\MediaStorageService;
|
||||||
|
use App\Jobs\MediaPipeline\MediaStoragePipeline;
|
||||||
|
|
||||||
class Helpers {
|
class Helpers {
|
||||||
|
|
||||||
|
@ -400,6 +401,7 @@ class Helpers {
|
||||||
$media->remote_url = $url;
|
$media->remote_url = $url;
|
||||||
$media->mime = $type;
|
$media->mime = $type;
|
||||||
$media->save();
|
$media->save();
|
||||||
|
MediaStoragePipeline::dispatch($media);
|
||||||
}
|
}
|
||||||
|
|
||||||
$status->viewType();
|
$status->viewType();
|
||||||
|
|
Loading…
Reference in a new issue