]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
More item abstraction / making remote deletion work again
[friendica.git] / mod / item.php
index be9fa09c478985c2496525ede78ca73fa2c03ce7..61de1e096cd8c68d1eb4b5634154b699ad5e188c 100644 (file)
@@ -106,7 +106,7 @@ function item_post(App $a) {
                        $thr_parent_contact = Contact::getDetailsByURL($parent_item["author-link"]);
 
                        if ($parent_item['id'] != $parent_item['parent']) {
-                               $parent_item = dba::selectFirst('item', [], ['id' => $parent_item['parent']]);
+                               $parent_item = Item::selectFirst(Item::ITEM_FIELDLIST, ['id' => $parent_item['parent']]);
                        }
                }
 
@@ -170,7 +170,7 @@ function item_post(App $a) {
        $orig_post = null;
 
        if ($post_id) {
-               $orig_post = dba::selectFirst('item', [], ['id' => $post_id]);
+               $orig_post = Item::selectFirst(Item::ITEM_FIELDLIST, ['id' => $post_id]);
        }
 
        $user = dba::selectFirst('user', [], ['uid' => $profile_uid]);