We can now manage relay servers and can send content to them
[friendica.git/.git] / src / Protocol / ActivityPub / Receiver.php
index 05c3abc..d5164b5 100644 (file)
@@ -163,11 +163,13 @@ class Receiver
 
                if ($type != 'as:Announce') {
                        Logger::info('Not an announcement', ['activity' => $activity]);
+                       return;
                }
 
                $object_id = JsonLD::fetchElement($activity, 'as:object', '@id');
                if (empty($object_id)) {
                        Logger::info('No object id found', ['activity' => $activity]);
+                       return;
                }
 
                Logger::info('Got relayed message id', ['id' => $object_id]);