mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
Merge pull request #4322 from pixelfed/staging
Update pipeline dispatch, replace dispatchSync with dispatch
This commit is contained in:
commit
8858960577
7 changed files with 7 additions and 7 deletions
|
@ -102,7 +102,7 @@ class FixMediaDriver extends Command
|
||||||
'image/webp'
|
'image/webp'
|
||||||
])
|
])
|
||||||
) {
|
) {
|
||||||
ImageOptimize::dispatchSync($media);
|
ImageOptimize::dispatch($media);
|
||||||
sleep(3);
|
sleep(3);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -46,7 +46,7 @@ class VideoThumbnail extends Command
|
||||||
->take($limit)
|
->take($limit)
|
||||||
->get();
|
->get();
|
||||||
foreach($videos as $video) {
|
foreach($videos as $video) {
|
||||||
Pipeline::dispatchSync($video);
|
Pipeline::dispatch($video);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ class ContactController extends Controller
|
||||||
$contact->response = '';
|
$contact->response = '';
|
||||||
$contact->save();
|
$contact->save();
|
||||||
|
|
||||||
ContactPipeline::dispatchSync($contact);
|
ContactPipeline::dispatch($contact);
|
||||||
|
|
||||||
return redirect()->back()->with('status', 'Success - Your message has been sent to admins.');
|
return redirect()->back()->with('status', 'Success - Your message has been sent to admins.');
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ class DeleteAccountPipeline implements ShouldQueue
|
||||||
$id = $user->profile_id;
|
$id = $user->profile_id;
|
||||||
Status::whereProfileId($id)->chunk(50, function($statuses) {
|
Status::whereProfileId($id)->chunk(50, function($statuses) {
|
||||||
foreach($statuses as $status) {
|
foreach($statuses as $status) {
|
||||||
StatusDelete::dispatchSync($status);
|
StatusDelete::dispatch($status);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ class StatusDelete implements ShouldQueue
|
||||||
Media::whereStatusId($status->id)
|
Media::whereStatusId($status->id)
|
||||||
->get()
|
->get()
|
||||||
->each(function($media) {
|
->each(function($media) {
|
||||||
MediaDeletePipeline::dispatchSync($media);
|
MediaDeletePipeline::dispatch($media);
|
||||||
});
|
});
|
||||||
|
|
||||||
if($status->in_reply_to_id) {
|
if($status->in_reply_to_id) {
|
||||||
|
|
|
@ -49,7 +49,7 @@ class AdminNewAutospam extends Mailable
|
||||||
$data = $this->report->toArray();
|
$data = $this->report->toArray();
|
||||||
$reported_status = null;
|
$reported_status = null;
|
||||||
$reported_account = null;
|
$reported_account = null;
|
||||||
$url = url('/i/admin/reports/autospam/' . $this->report->id);
|
$url = url('/i/admin/reports/autospam/' . $this->report->id . '?ref=email');
|
||||||
|
|
||||||
if($data['item_type'] === 'App\Status') {
|
if($data['item_type'] === 'App\Status') {
|
||||||
$reported_status = StatusService::get($this->report->item_id, false);
|
$reported_status = StatusService::get($this->report->item_id, false);
|
||||||
|
|
|
@ -178,7 +178,7 @@ class Inbox
|
||||||
|
|
||||||
switch($obj['type']) {
|
switch($obj['type']) {
|
||||||
case 'Story':
|
case 'Story':
|
||||||
StoryFetch::dispatchSync($this->payload);
|
StoryFetch::dispatch($this->payload);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue