mirror of
https://github.com/friendica/friendica
synced 2025-04-24 16:30:10 +00:00
More item abstraction / making remote deletion work again
This commit is contained in:
parent
d6af9515ba
commit
4d35e228c4
10 changed files with 31 additions and 21 deletions
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue