[pumpio] Rename Item::delete to Item::markForDeletion #967

Merged
MrPetovan merged 2 commits from bug/7134-local-post-deleted into 2020.03-rc 2020-03-11 03:45:56 +01:00
Showing only changes of commit ceff17469c - Show all commits

View file

@ -808,8 +808,9 @@ function twitter_expire(App $a)
return;
}
$r = Item::select(['id'], ['deleted' => true, 'network' => Protocol::TWITTER]);
$r = Item::select(['id', 'guid'], ['deleted' => true, 'network' => Protocol::TWITTER]);
while ($row = DBA::fetch($r)) {
Logger::info('[twitter] Delete expired item', ['id' => $row['id'], 'guid' => $row['guid'], 'callstack' => \Friendica\Core\System::callstack()]);
DBA::delete('item', ['id' => $row['id']]);
}
DBA::close($r);