|
|
|
@ -795,6 +795,14 @@ class Inbox
|
|
|
|
if ($status->profile_id != $profile->id) {
|
|
|
|
if ($status->profile_id != $profile->id) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$notifications = Notification::whereActorId($status->profile_id)
|
|
|
|
|
|
|
|
->whereItemId($status->id)
|
|
|
|
|
|
|
|
->whereItemType('App\Status')
|
|
|
|
|
|
|
|
->get();
|
|
|
|
|
|
|
|
foreach ($notifications as $notification) {
|
|
|
|
|
|
|
|
$notification->forceDelete();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($status->scope && in_array($status->scope, ['public', 'unlisted', 'private'])) {
|
|
|
|
if ($status->scope && in_array($status->scope, ['public', 'unlisted', 'private'])) {
|
|
|
|
if ($status->type && ! in_array($status->type, ['story:reaction', 'story:reply', 'reply'])) {
|
|
|
|
if ($status->type && ! in_array($status->type, ['story:reaction', 'story:reply', 'reply'])) {
|
|
|
|
FeedRemoveRemotePipeline::dispatch($status->id, $status->profile_id)->onQueue('feed');
|
|
|
|
FeedRemoveRemotePipeline::dispatch($status->id, $status->profile_id)->onQueue('feed');
|
|
|
|
|