]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Delivery.php
More item abstraction / making remote deletion work again
[friendica.git] / src / Worker / Delivery.php
index e505f4bd705f2da1d84c1f701303f8ae7b6ac289..0c8ff27faf894d576303bba0a30decf2d61e8ce3 100644 (file)
@@ -53,7 +53,7 @@ class Delivery extends BaseObject
                } elseif ($cmd == self::RELOCATION) {
                        $uid = $item_id;
                } else {
-                       $item = dba::selectFirst('item', ['parent'], ['id' => $item_id]);
+                       $item = Item::selectFirst(['parent'], ['id' => $item_id]);
                        if (!DBM::is_result($item) || empty($item['parent'])) {
                                return;
                        }
@@ -436,12 +436,12 @@ class Delivery extends BaseObject
 
                        if (empty($target_item['title'])) {
                                $condition = ['uri' => $target_item['parent-uri'], 'uid' => $owner['uid']];
-                               $title = dba::selectFirst('item', ['title'], $condition);
+                               $title = Item::selectFirst(['title'], $condition);
                                if (DBM::is_result($title) && ($title['title'] != '')) {
                                        $subject = $title['title'];
                                } else {
                                        $condition = ['parent-uri' => $target_item['parent-uri'], 'uid' => $owner['uid']];
-                                       $title = dba::selectFirst('item', ['title'], $condition);
+                                       $title = Item::selectFirst(['title'], $condition);
                                        if (DBM::is_result($title) && ($title['title'] != '')) {
                                                $subject = $title['title'];
                                        }