]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Term.php
Merge pull request #5314 from MrPetovan/task/4889-fix-tests
[friendica.git] / src / Model / Term.php
index cca47080145dfed050dc323e7a3d0539cde57cfc..e9918c23b848669ac1343ce799a29bcc394c3907 100644 (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"]) {