X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FPost.php;h=216008974ab9525f4e7115ccd2d78421bab85ad8;hb=4d35e228c41a1fc6a6de9f50b8ec5c5bb45a9c2d;hp=b131246fd4e1a3f7a909d566506c291d0d0d1a62;hpb=d6af9515ba13bf6350fd3a2714e44e0d2765a121;p=friendica.git diff --git a/src/Object/Post.php b/src/Object/Post.php index b131246fd4..216008974a 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -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']; }