]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Item.php
Use a constant for the avatar base path
[friendica.git] / src / Model / Item.php
index d57700c33d077712af750baefab62833916df5e6..496757910ae367a43a006b32513d1606fbdfd06c 100644 (file)
@@ -3200,6 +3200,12 @@ class Item
                                'orig_title' => DI::l10n()->t('View on separate page'),
                        ];
 
+                       if (!empty($plink) && ($item['private'] == self::PRIVATE)) {
+                               $author = ['uid' => 0, 'id' => $item['author-id'],
+                                       'network' => $item['author-network'], 'url' => $item['author-link']];
+                               $plink = Contact::magicLinkByContact($author, $plink);
+                       }
+
                        if (!empty($plink)) {
                                $ret['href'] = DI::baseUrl()->remove($plink);
                                $ret['title'] = DI::l10n()->t('Link to source');