Update src/Protocol/ActivityPub/Processor.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Artur Weigandt 2024-11-18 08:38:12 +01:00 committed by GitHub
parent 219b258a54
commit 2b40e49e6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2336,7 +2336,6 @@ class Processor
if (!empty($activity['object_actor'])) {
$uid = User::getIdForURL($activity['object_actor']);
$check_id = false;
} elseif (!empty($activity['receiver']) && (count($activity['receiver']) == 1)) {
$uid = array_shift($activity['receiver']);
$check_id = true;