]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Fix for: empty posts and comments that hadn't been transmitted to Diaspora
[friendica.git] / mod / item.php
index 0a3c3e2fa49508f09f18b64d68a82587494bc0df..be9fa09c478985c2496525ede78ca73fa2c03ce7 100644 (file)
@@ -737,7 +737,7 @@ function item_post(App $a) {
                goaway($return_path);
        }
 
-       $datarray = dba::selectFirst('item', [], ['id' => $post_id]);
+       $datarray = Item::selectFirst(Item::ITEM_FIELDLIST, ['id' => $post_id]);
 
        if (!DBM::is_result($datarray)) {
                logger("Item with id ".$post_id." couldn't be fetched.");