[twitter] Add logging to item deletion

pull/967/head
Hypolite Petovan 2020-03-10 18:55:55 -04:00
parent acc013f287
commit ceff17469c
1 changed files with 2 additions and 1 deletions

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);