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);
|
$last_publish = DI::pConfig()->get($posting['item']['uid'], 'system', 'last_publish', 0, true);
|
||||||
$next_publish = max($last_publish + (60 * $min_posting), time());
|
$next_publish = max($last_publish + (60 * $min_posting), time());
|
||||||
if ($publish_time < $next_publish) {
|
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_time = $next_publish;
|
||||||
}
|
}
|
||||||
$publish_at = date(DateTimeFormat::MYSQL, $publish_time);
|
$publish_at = date(DateTimeFormat::MYSQL, $publish_time);
|
||||||
|
|
|
@ -383,6 +383,10 @@ return [
|
||||||
// minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
|
// minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
|
||||||
'min_poll_interval' => 15,
|
'min_poll_interval' => 15,
|
||||||
|
|
||||||
|
// minimum_posting_interval (Integer)
|
||||||
|
// Minimum interval between two feed posts per user
|
||||||
|
'minimum_posting_interval' => 0,
|
||||||
|
|
||||||
// no_count (Boolean)
|
// no_count (Boolean)
|
||||||
// Don't do count calculations (currently only when showing photo albums).
|
// Don't do count calculations (currently only when showing photo albums).
|
||||||
'no_count' => false,
|
'no_count' => false,
|
||||||
|
|
Loading…
Reference in a new issue