X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=61de1e096cd8c68d1eb4b5634154b699ad5e188c;hb=4d35e228c41a1fc6a6de9f50b8ec5c5bb45a9c2d;hp=be9fa09c478985c2496525ede78ca73fa2c03ce7;hpb=113102a8010c9318e7140d069bc24520a708e1ed;p=friendica.git diff --git a/mod/item.php b/mod/item.php index be9fa09c47..61de1e096c 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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]);