diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 6c4071f975..3de1fc7d3c 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -1928,8 +1928,6 @@ class Processor { if (!empty($object['published'])) { $published = $object['published']; - } elseif (!empty($child['published'])) { - $published = $child['published']; } else { $published = DateTimeFormat::utcNow(); } diff --git a/src/Protocol/ActivityPub/Transmitter.php b/src/Protocol/ActivityPub/Transmitter.php index 9308cb11b0..fe801980f2 100644 --- a/src/Protocol/ActivityPub/Transmitter.php +++ b/src/Protocol/ActivityPub/Transmitter.php @@ -930,7 +930,7 @@ class Transmitter * @param boolean $blindcopy * @return void */ - public static function getReceiversForUriId(int $uri_id, bool $blindcopy) + public static function getReceiversForUriId(int $uri_id, bool $blindcopy): array { $tags = Tag::getByURIId($uri_id, [Tag::TO, Tag::CC, Tag::BTO, Tag::BCC, Tag::AUDIENCE]); if (empty($tags)) { @@ -1029,8 +1029,8 @@ class Transmitter $inboxes = []; $isGroup = false; - if (!empty($item['uid'])) { - $profile = User::getOwnerDataById($item['uid']); + if (!empty($uid)) { + $profile = User::getOwnerDataById($uid); if (!empty($profile)) { $isGroup = $profile['account-type'] == User::ACCOUNT_TYPE_COMMUNITY; }