Adding of missing entries is now kept behind a config

This commit is contained in:
Michael 2021-03-03 11:01:16 +00:00
parent 7f4722ce6f
commit 4a991f0189
2 changed files with 7 additions and 1 deletions

View 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');

View 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',