mirror of
https://github.com/friendica/friendica
synced 2025-05-21 19:44:12 +02:00
Added logging and default config value
This commit is contained in:
parent
a283b1183b
commit
b047d31a4f
2 changed files with 8 additions and 0 deletions
|
@ -648,6 +648,10 @@ class Feed
|
|||
$last_publish = DI::pConfig()->get($posting['item']['uid'], 'system', 'last_publish', 0, true);
|
||||
$next_publish = max($last_publish + (60 * $min_posting), time());
|
||||
if ($publish_time < $next_publish) {
|
||||
Logger::notice('Adapting publish time',
|
||||
['last' => date(DateTimeFormat::MYSQL, $last_publish),
|
||||
'next' => date(DateTimeFormat::MYSQL, $next_publish),
|
||||
'publish' => date(DateTimeFormat::MYSQL, $publish_time)]);
|
||||
$publish_time = $next_publish;
|
||||
}
|
||||
$publish_at = date(DateTimeFormat::MYSQL, $publish_time);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue