From 1bb25de287cf9a794f733d6ae140fd745c10eb6b Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 26 Sep 2021 12:17:30 +0000 Subject: [PATCH] Applied change from PR #10763 --- src/Content/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Item.php b/src/Content/Item.php index a59f1294e1..91bf79f177 100644 --- a/src/Content/Item.php +++ b/src/Content/Item.php @@ -372,7 +372,7 @@ class Item // add sparkle links to appropriate permalinks // 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'], 'network' => $item['author-network'], 'url' => $item['author-link']]; $item['plink'] = Contact::magicLinkByContact($author, $item['plink']); -- 2.39.5