mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update StatusDelete pipeline
This commit is contained in:
parent
52879826fa
commit
e029d09c8a
1 changed files with 3 additions and 2 deletions
|
@ -93,7 +93,7 @@ class StatusDelete implements ShouldQueue
|
|||
Media::whereStatusId($status->id)
|
||||
->get()
|
||||
->each(function($media) {
|
||||
MediaDeletePipeline::dispatch($media)->onQueue('mmo');
|
||||
MediaDeletePipeline::dispatchNow($media);
|
||||
});
|
||||
|
||||
if($status->in_reply_to_id) {
|
||||
|
@ -142,13 +142,14 @@ class StatusDelete implements ShouldQueue
|
|||
|
||||
public function fanoutDelete($status)
|
||||
{
|
||||
$audience = $status->profile->getAudienceInbox();
|
||||
$profile = $status->profile;
|
||||
|
||||
if(!$profile) {
|
||||
return;
|
||||
}
|
||||
|
||||
$audience = $status->profile->getAudienceInbox();
|
||||
|
||||
$fractal = new Fractal\Manager();
|
||||
$fractal->setSerializer(new ArraySerializer());
|
||||
$resource = new Fractal\Resource\Item($status, new DeleteNote());
|
||||
|
|
Loading…
Reference in a new issue