]> git.mxchange.org Git - friendica.git/commitdiff
Adding of missing entries is now kept behind a config
authorMichael <heluecht@pirati.ca>
Wed, 3 Mar 2021 11:01:16 +0000 (11:01 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 3 Mar 2021 11:01:16 +0000 (11:01 +0000)
src/Worker/ExpirePosts.php
static/settings.config.php

index d51e956a5656a68766a2c5849c06e43e4ff1243a..c8120be28794af209ee0d7e67deb7ef7c08b48ff 100644 (file)
@@ -47,7 +47,9 @@ class ExpirePosts
 
                self::deleteExpiredExternalPosts();
 
-               self::addMissingEntries();
+               if (DI::config()->get('system', 'add_missing_posts')) {
+                       self::addMissingEntries();
+               }
 
                // Set the expiry for origin posta
                Worker::add(PRIORITY_LOW, 'Expire');
index c05e675edb76012961a2e72034f472d399379307..b608307a90a3ae2e2f279b0d31bf86c27d287f81 100644 (file)
@@ -56,6 +56,10 @@ return [
                // Manual list of addons which are enabled on this system.
                'addon' => '',
 
+               // add_missing_posts (boolean)
+               // Checks for missing entries in "post", "post-thread" or "post-thread-user" and creates them
+               'add_missing_posts' => false,
+
                // allowed_themes (Comma-separated list)
                // Themes users can change to in their settings.
                'allowed_themes' => 'quattro,vier,duepuntozero,smoothly',