Merge pull request #14352 from annando/fix-target-inboxes

Fix for fetching the target inboxes
This commit is contained in:
Tobias Diekershoff 2024-08-13 07:18:41 +02:00 committed by GitHub
commit 9bb05d3cc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;
}