Issue 14364: Fix delivery of group posts to Friendica contacts

This commit is contained in:
Michael 2024-08-17 03:04:00 +00:00
parent 2e0b104ebc
commit b6268d8d8d
2 changed files with 3 additions and 15 deletions

View file

@ -547,9 +547,9 @@ class Item
$item['private'] = $private_group ? ItemModel::PRIVATE : ItemModel::UNLISTED;
if ($only_to_group) {
$ucid = Contact::getUserContactId($group_contact['id'], $item['uid']);
if ($ucid) {
$item['owner-id'] = $ucid;
$pcid = Contact::getPublicContactId($group_contact['id'], $item['uid']);
if ($pcid) {
$item['owner-id'] = $pcid;
unset($item['owner-link']);
unset($item['owner-name']);
unset($item['owner-avatar']);

View file

@ -1028,14 +1028,6 @@ class Transmitter
{
$inboxes = [];
$isGroup = false;
if (!empty($uid)) {
$profile = User::getOwnerDataById($uid);
if (!empty($profile)) {
$isGroup = $profile['account-type'] == User::ACCOUNT_TYPE_COMMUNITY;
}
}
if ($all_ap) {
// Will be activated in a later step
$networks = Protocol::FEDERATED;
@ -1064,10 +1056,6 @@ class Transmitter
continue;
}
if ($isGroup && ($contact['network'] == Protocol::DFRN)) {
continue;
}
if (Network::isUrlBlocked($contact['url'])) {
continue;
}