]> git.mxchange.org Git - friendica.git/commitdiff
Added logging and default config value
authorMichael <heluecht@pirati.ca>
Tue, 1 Dec 2020 23:46:50 +0000 (23:46 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 1 Dec 2020 23:46:50 +0000 (23:46 +0000)
src/Protocol/Feed.php
static/defaults.config.php

index f874b4b02603e7e06d829f1c030b4f529d429f00..2d5fbff4f722cf9fc6dc9f728603c4acc5ea3e5f 100644 (file)
@@ -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);
index f70bf8c8f642a86be076628bf2c18212bfa3b4d0..e7d7985aa47cef4cfec46d9914bd20d8c401346e 100644 (file)
@@ -383,6 +383,10 @@ return [
                // minimal distance in minutes between two polls for a contact. Reasonable values are between 1 and 59.
                'min_poll_interval' => 15,
 
+               // minimum_posting_interval (Integer)
+               // Minimum interval between two feed posts per user
+               'minimum_posting_interval' => 0,
+
                // no_count (Boolean)
                // Don't do count calculations (currently only when showing photo albums).
                'no_count' => false,