]> git.mxchange.org Git - friendica.git/commitdiff
Fix for fetching the target inboxes
authorMichael <heluecht@pirati.ca>
Mon, 12 Aug 2024 16:47:04 +0000 (16:47 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 12 Aug 2024 16:57:57 +0000 (16:57 +0000)
src/Protocol/ActivityPub/Processor.php
src/Protocol/ActivityPub/Transmitter.php

index 6c4071f975a35edf6c8f8037758073a947bd059a..3de1fc7d3c11004aa4fe65989ed04a96be09da4c 100644 (file)
@@ -1928,8 +1928,6 @@ class Processor
        {
                if (!empty($object['published'])) {
                        $published = $object['published'];
-               } elseif (!empty($child['published'])) {
-                       $published = $child['published'];
                } else {
                        $published = DateTimeFormat::utcNow();
                }
index 9308cb11b088a834fa6a95f85746c19beedc8f19..fe801980f25d8ee975e9f7ce4457b950d8f02c5c 100644 (file)
@@ -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;
                        }