mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-01 18:53:16 +00:00
Update AP Inbox
This commit is contained in:
parent
8a93ed38fa
commit
4219abe95c
1 changed files with 16 additions and 2 deletions
|
@ -323,6 +323,20 @@ class Inbox
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Announce':
|
case 'Announce':
|
||||||
|
abort_if(!Helpers::validateLocalUrl($obj), 400);
|
||||||
|
$status = Helpers::statusFetch($obj);
|
||||||
|
if(!$status) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Status::whereProfileId($profile->id)
|
||||||
|
->whereReblogOfId($status->id)
|
||||||
|
->forceDelete();
|
||||||
|
Notification::whereProfileId($status->profile->id)
|
||||||
|
->whereActorId($profile->id)
|
||||||
|
->whereAction('share')
|
||||||
|
->whereItemId($status->reblog_of_id)
|
||||||
|
->whereItemType('App\Status')
|
||||||
|
->forceDelete();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Block':
|
case 'Block':
|
||||||
|
@ -354,6 +368,6 @@ class Inbox
|
||||||
->forceDelete();
|
->forceDelete();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue