All references to the item table had been removed

This commit is contained in:
Michael 2021-02-14 08:18:02 +00:00
parent ad968ab2c9
commit 05a805398e
5 changed files with 14 additions and 14 deletions

View file

@ -853,7 +853,7 @@ function twitter_expire(App $a)
$r = Post::select(['id', 'guid'], ['deleted' => true, 'network' => Protocol::TWITTER]);
while ($row = Post::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']]);
Item::markForDeletionById($row['id']);
}
DBA::close($r);