mirror of
https://github.com/friendica/friendica
synced 2025-04-26 21:10:16 +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
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue