]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Item.php
Fix test
[friendica.git] / src / Content / Item.php
index a59f1294e13d632a8ee9cd063d4dc7fe7be8cc06..694ef52d96ea5193c55b04434ded19fe26b1d733 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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']);