]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Post.php
More item abstraction / making remote deletion work again
[friendica.git] / src / Object / Post.php
index 7a65c8afc9feefd47f81929702c88952bbfa8aac..216008974ab9525f4e7115ccd2d78421bab85ad8 100644 (file)
@@ -13,6 +13,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Database\DBM;
 use Friendica\Model\Contact;
+use Friendica\Model\Item;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Temporal;
 use dba;
@@ -178,7 +179,7 @@ class Post extends BaseObject
                if (!$origin) {
                        /// @todo This shouldn't be done as query here, but better during the data creation.
                        // it is now done here, since during the RC phase we shouldn't make to intense changes.
-                       $parent = dba::selectFirst('item', ['origin'], ['id' => $item['parent']]);
+                       $parent = Item::selectFirst(['origin'], ['id' => $item['parent']]);
                        if (DBM::is_result($parent)) {
                                $origin = $parent['origin'];
                        }
@@ -859,7 +860,7 @@ class Post extends BaseObject
 
                                                $owner = ['uid' => 0, 'id' => $this->getDataValue('owner-id'),
                                                        'network' => $this->getDataValue('owner-network'),
-                                                       'url' => $this->getDataValue('ownerr-link')];
+                                                       'url' => $this->getDataValue('owner-link')];
                                                $this->owner_url = Contact::magicLinkbyContact($owner);
                                        }
                                }