From 8e11f055b1e74a85c85ddcbc35ef2f4bda550a77 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 21 Oct 2018 21:56:46 +0000 Subject: [PATCH] Improve PR 5984: better check for remote users as well --- include/conversation.php | 2 +- src/Object/Post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/conversation.php b/include/conversation.php index 9e813b5eb..2ccdf8fb7 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -354,7 +354,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()) { + if (!empty($item['plink']) && (local_user() || remote_user())) { $item['plink'] = Contact::magicLinkbyContact($author, $item['plink']); } } diff --git a/src/Object/Post.php b/src/Object/Post.php index 152467863..70428ab84 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -210,7 +210,7 @@ class Post extends BaseObject $author = ['uid' => 0, 'id' => $item['author-id'], 'network' => $item['author-network'], 'url' => $item['author-link']]; - if (local_user()) { + if (local_user() || remote_user()) { $profile_link = Contact::magicLinkbyContact($author); } else { $profile_link = $item['author-link'];