mirror of
https://github.com/friendica/friendica
synced 2025-04-28 01:50:13 +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
|
@ -250,7 +250,7 @@ class Feed {
|
|||
if (!$simulate) {
|
||||
$condition = ["`uid` = ? AND `uri` = ? AND `network` IN (?, ?)",
|
||||
$importer["uid"], $item["uri"], NETWORK_FEED, NETWORK_DFRN];
|
||||
$previous = dba::selectFirst('item', ['id'], $condition);
|
||||
$previous = Item::selectFirst(['id'], $condition);
|
||||
if (DBM::is_result($previous)) {
|
||||
logger("Item with uri ".$item["uri"]." for user ".$importer["uid"]." already existed under id ".$previous["id"], LOGGER_DEBUG);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue