Use already fetched data for magiclink

This commit is contained in:
Michael 2018-07-02 05:41:55 +00:00
parent 183c8fd7e2
commit 717ca0b7eb
5 changed files with 56 additions and 19 deletions

View file

@ -237,7 +237,9 @@ class Term
$orig_tag = $tag["url"];
$tag["url"] = Contact::magicLinkById($item['author-id'], $tag['url']);
$author = ['uid' => 0, 'id' => $item['author-id'],
'network' => $item['author-network'], 'url' => $item['author-link']];
$tag["url"] = Contact::magicLinkByContact($author, $tag['url']);
if ($tag["type"] == TERM_HASHTAG) {
if ($orig_tag != $tag["url"]) {