mirror of
https://github.com/friendica/friendica
synced 2024-11-17 20:23:40 +00:00
Fix for fetching the target inboxes
This commit is contained in:
parent
80bd572393
commit
94c3331bcd
2 changed files with 3 additions and 5 deletions
|
@ -1928,8 +1928,6 @@ class Processor
|
|||
{
|
||||
if (!empty($object['published'])) {
|
||||
$published = $object['published'];
|
||||
} elseif (!empty($child['published'])) {
|
||||
$published = $child['published'];
|
||||
} else {
|
||||
$published = DateTimeFormat::utcNow();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue