]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Merge pull request #5711 from annando/and-again
[friendica.git] / mod / photos.php
index 277f5af4749c797e7e9201d7f3e283e05c94646f..5fb6ba368354aab0735da2000e17d1d55354b6de 100644 (file)
@@ -1394,7 +1394,7 @@ function photos_content(App $a)
                        $a->set_pager_total(DBA::count('item', $condition));
 
                        $params = ['order' => ['id'], 'limit' => [$a->pager['start'], $a->pager['itemspage']]];
-                       $result = Item::selectForUser($link_item['uid'], [], $condition, $params);
+                       $result = Item::selectForUser($link_item['uid'], Item::ITEM_FIELDLIST, $condition, $params);
                        $items = Item::inArray($result);
 
                        if (local_user() && (local_user() == $link_item['uid'])) {
@@ -1569,7 +1569,7 @@ function photos_content(App $a)
                                        $body_e = BBCode::convert($item['body']);
 
                                        $comments .= replace_macros($template,[
-                                               '$id' => $item['item_id'],
+                                               '$id' => $item['id'],
                                                '$profile_url' => $profile_url,
                                                '$name' => $item['author-name'],
                                                '$thumb' => $item['author-avatar'],