mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Delete pipelines, delete status hashtags quietly
This commit is contained in:
parent
c3f16c87a3
commit
fcbcd7ec73
3 changed files with 3 additions and 12 deletions
|
@ -76,10 +76,7 @@ class DeleteRemoteStatusPipeline implements ShouldQueue
|
||||||
});
|
});
|
||||||
Mention::whereStatusId($status->id)->forceDelete();
|
Mention::whereStatusId($status->id)->forceDelete();
|
||||||
Report::whereObjectType('App\Status')->whereObjectId($status->id)->delete();
|
Report::whereObjectType('App\Status')->whereObjectId($status->id)->delete();
|
||||||
$statusHashtags = StatusHashtag::whereStatusId($status->id)->get();
|
StatusHashtag::whereStatusId($status->id)->deleteQuietly();
|
||||||
foreach($statusHashtags as $stag) {
|
|
||||||
$stag->delete();
|
|
||||||
}
|
|
||||||
StatusView::whereStatusId($status->id)->delete();
|
StatusView::whereStatusId($status->id)->delete();
|
||||||
Status::whereReblogOfId($status->id)->forceDelete();
|
Status::whereReblogOfId($status->id)->forceDelete();
|
||||||
$status->forceDelete();
|
$status->forceDelete();
|
||||||
|
|
|
@ -174,10 +174,7 @@ class RemoteStatusDelete implements ShouldQueue, ShouldBeUniqueUntilProcessing
|
||||||
->whereObjectId($status->id)
|
->whereObjectId($status->id)
|
||||||
->delete();
|
->delete();
|
||||||
StatusArchived::whereStatusId($status->id)->delete();
|
StatusArchived::whereStatusId($status->id)->delete();
|
||||||
$statusHashtags = StatusHashtag::whereStatusId($status->id)->get();
|
StatusHashtag::whereStatusId($status->id)->deleteQuietly();
|
||||||
foreach($statusHashtags as $stag) {
|
|
||||||
$stag->delete();
|
|
||||||
}
|
|
||||||
StatusView::whereStatusId($status->id)->delete();
|
StatusView::whereStatusId($status->id)->delete();
|
||||||
Status::whereInReplyToId($status->id)->update(['in_reply_to_id' => null]);
|
Status::whereInReplyToId($status->id)->update(['in_reply_to_id' => null]);
|
||||||
|
|
||||||
|
|
|
@ -151,10 +151,7 @@ class StatusDelete implements ShouldQueue
|
||||||
->delete();
|
->delete();
|
||||||
|
|
||||||
StatusArchived::whereStatusId($status->id)->delete();
|
StatusArchived::whereStatusId($status->id)->delete();
|
||||||
$statusHashtags = StatusHashtag::whereStatusId($status->id)->get();
|
StatusHashtag::whereStatusId($status->id)->deleteQuietly();
|
||||||
foreach($statusHashtags as $stag) {
|
|
||||||
$stag->delete();
|
|
||||||
}
|
|
||||||
StatusView::whereStatusId($status->id)->delete();
|
StatusView::whereStatusId($status->id)->delete();
|
||||||
Status::whereInReplyToId($status->id)->update(['in_reply_to_id' => null]);
|
Status::whereInReplyToId($status->id)->update(['in_reply_to_id' => null]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue