Delay unprepared posts

This commit is contained in:
Michael 2020-12-13 12:47:49 +00:00
parent c787281eff
commit 0eb4a600b0
8 changed files with 58 additions and 25 deletions

View file

@ -656,8 +656,7 @@ class Feed
}
$publish_at = date(DateTimeFormat::MYSQL, $publish_time);
Post\Delayed::add($publish_at, $posting['item'], $posting['notify'], $posting['taglist'], $posting['attachments']);
DI::pConfig()->set($item['uid'], 'system', 'last_publish', $next_publish);
Post\Delayed::add($posting['item']['uri'], $posting['item'], $posting['notify'], false, $publish_at, $posting['taglist'], $posting['attachments']);
}
}