mirror of
https://github.com/friendica/friendica
synced 2025-04-28 18:24:24 +02:00
Set the group as owner for "group only" postings
This commit is contained in:
parent
8c0a19755c
commit
8d5876d5f2
2 changed files with 14 additions and 5 deletions
|
@ -537,6 +537,14 @@ class Item
|
|||
$item['private'] = $private_group ? ItemModel::PRIVATE : ItemModel::UNLISTED;
|
||||
|
||||
if ($only_to_group) {
|
||||
$cdata = Contact::getPublicAndUserContactID($group_contact['id'], $item['uid']);
|
||||
if (!empty($cdata['user'])) {
|
||||
$item['owner-id'] = $cdata['user'];
|
||||
unset($item['owner-link']);
|
||||
unset($item['owner-name']);
|
||||
unset($item['owner-avatar']);
|
||||
}
|
||||
|
||||
$item['postopts'] = '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue