Applied change from PR #10763

This commit is contained in:
Michael 2021-09-26 12:17:30 +00:00
parent 6d19ecfde0
commit 1bb25de287

View file

@ -372,7 +372,7 @@ class Item
// add sparkle links to appropriate permalinks // add sparkle links to appropriate permalinks
// Only create a redirection to a magic link when logged in // Only create a redirection to a magic link when logged in
if (!empty($item['plink']) && Session::isAuthenticated()) { if (!empty($item['plink']) && Session::isAuthenticated() && $item['private'] == ModelItem::PRIVATE) {
$author = ['uid' => 0, 'id' => $item['author-id'], $author = ['uid' => 0, 'id' => $item['author-id'],
'network' => $item['author-network'], 'url' => $item['author-link']]; 'network' => $item['author-network'], 'url' => $item['author-link']];
$item['plink'] = Contact::magicLinkByContact($author, $item['plink']); $item['plink'] = Contact::magicLinkByContact($author, $item['plink']);