mirror of
https://github.com/friendica/friendica
synced 2024-11-17 20:23:40 +00:00
Issue 14364: Fix delivery of group posts to Friendica contacts
This commit is contained in:
parent
2e0b104ebc
commit
b6268d8d8d
2 changed files with 3 additions and 15 deletions
|
@ -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']);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue