X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=df843846456d613522f83fa45d272402c1937a81;hb=7789ea25079801ee1425368e9bf2f7ce80d16d88;hp=817e9fc53fbfc203ece9a3709478cd0cef7020a9;hpb=8b9205a9a52805afaccbcb7e70a91786dc7e24ff;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 817e9fc53f..df84384645 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1,6 +1,6 @@ getQueryString()); $params = ['order' => ['id'], 'limit' => [$pager->getStart(), $pager->getItemsPerPage()]]; - $result = Item::selectForUser($link_item['uid'], Item::ITEM_FIELDLIST, $condition, $params); - $items = Item::inArray($result); + $items = Post::toArray(Post::selectForUser($link_item['uid'], Item::ITEM_FIELDLIST, $condition, $params)); if (local_user() == $link_item['uid']) { Item::update(['unseen' => false], ['parent' => $link_item['parent']]); @@ -1455,7 +1454,9 @@ function photos_content(App $a) continue; } - $profile_url = Contact::magicLinkById($item['author-id']); + $author = ['uid' => 0, 'id' => $item['author-id'], + 'network' => $item['author-network'], 'url' => $item['author-link']]; + $profile_url = Contact::magicLinkByContact($author); if (strpos($profile_url, 'redir/') === 0) { $sparkle = ' sparkle'; } else {