From 5545bafdee61232e9afa0f7e257e8f7a61627bb8 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 21 Jul 2020 19:55:24 +0000 Subject: [PATCH] Fix notice "Undefined index: gravity in /src/Protocol/ActivityPub/Processor.php on line 556" --- src/Protocol/ActivityPub/Processor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 241907f62..db1492aa1 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -514,6 +514,10 @@ class Processor */ public static function postItem(array $activity, array $item) { + if (empty($item)) { + return; + } + $stored = false; foreach ($activity['receiver'] as $receiver) {