]> git.mxchange.org Git - friendica.git/blobdiff - include/conversation.php
New function "isAuthenticated"
[friendica.git] / include / conversation.php
index 66b6d2a11cc48cb6de5862c534f34406b706c8ec..74c8a6d27243ef9a6ac09361707783a2d26f3abd 100644 (file)
@@ -365,7 +365,7 @@ function localize_item(&$item)
                'network' => $item['author-network'], 'url' => $item['author-link']];
 
        // Only create a redirection to a magic link when logged in
-       if (!empty($item['plink']) && (local_user() || remote_user())) {
+       if (!empty($item['plink']) && Session::isAuthenticated()) {
                $item['plink'] = Contact::magicLinkByContact($author, $item['plink']);
        }
 }