mirror of
https://github.com/friendica/friendica
synced 2025-04-28 12:24:23 +02:00
Rename Item::delete* methods to Item::markForDeletion*
This commit is contained in:
parent
dd613cda45
commit
6ae5f705b6
7 changed files with 22 additions and 23 deletions
|
@ -220,7 +220,7 @@ class Processor
|
|||
$owner = Contact::getIdForURL($activity['actor']);
|
||||
|
||||
Logger::log('Deleting item ' . $activity['object_id'] . ' from ' . $owner, Logger::DEBUG);
|
||||
Item::delete(['uri' => $activity['object_id'], 'owner-id' => $owner]);
|
||||
Item::markForDeletion(['uri' => $activity['object_id'], 'owner-id' => $owner]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -868,7 +868,7 @@ class Processor
|
|||
return;
|
||||
}
|
||||
|
||||
Item::delete(['uri' => $activity['object_id'], 'author-id' => $author_id, 'gravity' => GRAVITY_ACTIVITY]);
|
||||
Item::markForDeletion(['uri' => $activity['object_id'], 'author-id' => $author_id, 'gravity' => GRAVITY_ACTIVITY]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -2716,7 +2716,7 @@ class DFRN
|
|||
|
||||
Logger::log('deleting item '.$item['id'].' uri='.$uri, Logger::DEBUG);
|
||||
|
||||
Item::delete(['id' => $item['id']]);
|
||||
Item::markForDeletion(['id' => $item['id']]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -2794,7 +2794,7 @@ class Diaspora
|
|||
continue;
|
||||
}
|
||||
|
||||
Item::delete(['id' => $item['id']]);
|
||||
Item::markForDeletion(['id' => $item['id']]);
|
||||
|
||||
Logger::log("Deleted target ".$target_guid." (".$item["id"].") from user ".$item["uid"]." parent: ".$item["parent"], Logger::DEBUG);
|
||||
}
|
||||
|
|
|
@ -585,7 +585,7 @@ class OStatus
|
|||
return;
|
||||
}
|
||||
|
||||
Item::delete($condition);
|
||||
Item::markForDeletion($condition);
|
||||
|
||||
Logger::log('Deleted item with uri '.$item['uri'].' for user '.$item['uid']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue