[PLUGIN][ActivityPub] Implement Group Inbox POST

This commit is contained in:
2022-02-12 04:34:10 +00:00
parent 3ae8f8213f
commit 10d1a7ed2a
4 changed files with 87 additions and 6 deletions

View File

@@ -356,7 +356,7 @@ class RepeatNote extends NoteHandlerPlugin
*/
private function activitypub_handler(Actor $actor, \ActivityPhp\Type\AbstractObject $type_activity, mixed $type_object, ?\Plugin\ActivityPub\Entity\ActivitypubActivity &$ap_act): bool
{
if (!\in_array($type_activity->get('type'), ['Announce', 'Undo'])) {
if (!\in_array($type_activity->get('type'), ['Announce', 'Undo']) || !$actor->isPerson()) {
return Event::next;
}
if ($type_activity->get('type') === 'Announce') { // Repeat