Logger::info('Start', ['uri-id' => $id]);
- $start_id = $id;
- $rows = 0;
+ $rows = 0;
+ $received = '';
$conversations = DBA::p("SELECT `post-view`.`uri-id`, `conversation`.`source`, `conversation`.`received` FROM `conversation`
INNER JOIN `post-view` ON `post-view`.`uri` = `conversation`.`item-uri`
Logger::info('Processed', ['rows' => $rows, 'last' => $id, 'last-received' => $received]);
- if ($start_id == $id) {
+ if ($rows <= 100) {
DI::config()->set('system', 'post_update_version', 1452);
Logger::info('Done');
return true;