mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Merge pull request #14082 from annando/issue-14055
Issue 14055: Set link to group server for group posts
This commit is contained in:
commit
0a88d5a94a
1 changed files with 7 additions and 0 deletions
|
@ -3990,6 +3990,13 @@ class Item
|
|||
$plink = $item['uri'];
|
||||
}
|
||||
|
||||
if (($item['post-reason'] == self::PR_ANNOUNCEMENT) && ($item['owner-contact-type'] == Contact::TYPE_COMMUNITY) && ($item['owner-network'] == Protocol::DFRN)) {
|
||||
$contact = Contact::getById($item['owner-id'], ['baseurl']);
|
||||
if (!empty($contact['baseurl'])) {
|
||||
$plink = $contact['baseurl'] . '/display/' . $item['guid'];
|
||||
}
|
||||
}
|
||||
|
||||
if (DI::userSession()->getLocalUserId()) {
|
||||
$ret = [
|
||||
'href' => "display/" . $item['guid'],
|
||||
|
|
Loading…
Reference in a new issue