Fix for fetching the target inboxes

This commit is contained in:
Michael 2024-08-12 16:47:04 +00:00
parent 80bd572393
commit 94c3331bcd
2 changed files with 3 additions and 5 deletions

View 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();
}

View 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;
}