Merge pull request #1082 from annando/no-item

All references to the item table had been removed
This commit is contained in:
Hypolite Petovan 2021-02-14 11:05:11 -05:00 committed by GitHub
commit 7777f08047
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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);