mirror of
https://github.com/friendica/friendica
synced 2024-12-31 22:42:21 +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'])) {
|
if (!empty($object['published'])) {
|
||||||
$published = $object['published'];
|
$published = $object['published'];
|
||||||
} elseif (!empty($child['published'])) {
|
|
||||||
$published = $child['published'];
|
|
||||||
} else {
|
} else {
|
||||||
$published = DateTimeFormat::utcNow();
|
$published = DateTimeFormat::utcNow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -930,7 +930,7 @@ class Transmitter
|
||||||
* @param boolean $blindcopy
|
* @param boolean $blindcopy
|
||||||
* @return void
|
* @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]);
|
$tags = Tag::getByURIId($uri_id, [Tag::TO, Tag::CC, Tag::BTO, Tag::BCC, Tag::AUDIENCE]);
|
||||||
if (empty($tags)) {
|
if (empty($tags)) {
|
||||||
|
@ -1029,8 +1029,8 @@ class Transmitter
|
||||||
$inboxes = [];
|
$inboxes = [];
|
||||||
|
|
||||||
$isGroup = false;
|
$isGroup = false;
|
||||||
if (!empty($item['uid'])) {
|
if (!empty($uid)) {
|
||||||
$profile = User::getOwnerDataById($item['uid']);
|
$profile = User::getOwnerDataById($uid);
|
||||||
if (!empty($profile)) {
|
if (!empty($profile)) {
|
||||||
$isGroup = $profile['account-type'] == User::ACCOUNT_TYPE_COMMUNITY;
|
$isGroup = $profile['account-type'] == User::ACCOUNT_TYPE_COMMUNITY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue