]> git.mxchange.org Git - friendica.git/blobdiff - mod/display.php
New function to fetch item data especially for users
[friendica.git] / mod / display.php
index ad71f3b1c41eaacd0d8c0acf70ebe3d063de537b..7198d4bb5f89414073f04cc2fc5a15ba5e585afb 100644 (file)
@@ -349,7 +349,7 @@ function display_content(App $a, $update = false, $update_uid = 0) {
        $condition = ["`item`.`parent-uri` = (SELECT `parent-uri` FROM `item` WHERE `id` = ?)
                AND `item`.`uid` IN (0, ?) " . $sql_extra, $item_id, local_user()];
        $params = ['order' => ['uid', 'parent' => true, 'gravity', 'id']];
-       $r = Item::select(local_user(), Item::DISPLAY_FIELDLIST, $condition, $params);
+       $r = Item::selectForUser(local_user(), [], $condition, $params);
 
        if (!DBM::is_result($r)) {
                notice(L10n::t('Item not found.') . EOL);