diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php
index 76d050bd29..25c09c9cb5 100644
--- a/src/Protocol/ActivityPub/Processor.php
+++ b/src/Protocol/ActivityPub/Processor.php
@@ -1838,7 +1838,7 @@ class Processor
 		}
 
 		$reporter_id = Contact::getIdForURL($activity['actor']);
-		if (empty($account_id)) {
+		if (empty($reporter_id)) {
 			Logger::info('Unknown actor', ['activity' => $activity]);
 			Queue::remove($activity);
 			return;