]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Item.php
Continued:
[friendica.git] / src / Content / Item.php
index f74a9589626e082d6d002de3727ca826ec16dd9d..c7438d2593b57ec0f939f643bcc1c4e067590430 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -383,7 +383,7 @@ class Item
                        'url'     => $item['author-link'],
                        'alias'   => $item['author-alias'],
                ];
-               $profile_link = Contact::magicLinkByContact($author, $item['author-link']);
+               $profile_link = Contact::magicLinkByContact($author, Contact::getProfileLink($author));
                if (strpos($profile_link, 'contact/redir/') === 0) {
                        $status_link  = $profile_link . '?' . http_build_query(['url' => $item['author-link'] . '/status']);
                        $photos_link  = $profile_link . '?' . http_build_query(['url' => $item['author-link'] . '/photos']);