Browse Source

Adding of missing entries is now kept behind a config

pull/9979/head
Michael 1 year ago
parent
commit
4a991f0189
  1. 4
      src/Worker/ExpirePosts.php
  2. 4
      static/settings.config.php

4
src/Worker/ExpirePosts.php

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

4
static/settings.config.php

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

Loading…
Cancel
Save