Merge pull request #14366 from annando/issue-14364

Issue 14364: Fix post delivery of groups
This commit is contained in:
Tobias Diekershoff 2024-08-16 23:09:21 +02:00 committed by GitHub
commit d4f91a92f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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