Enable dynamic anonymous redirect by default in setup wizard

This commit is contained in:
JonnyWong16 2022-02-24 19:11:30 -08:00
parent 74cd494162
commit bd9fe54fd7
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 8 additions and 1 deletions

View file

@ -239,7 +239,8 @@
<input type="checkbox" name="refresh_libraries_on_startup" id="refresh_libraries_on_startup" value="1" checked>
<input type="checkbox" name="check_github" id="check_github" value="1" checked>
<input type="checkbox" name="log_blacklist" id="log_blacklist" value="1" checked>
<input type="checkbox" name="log_blacklist_usernames" id="log_blacklist" value="1" checked>
<input type="checkbox" name="log_blacklist_usernames" id="log_blacklist_usernames" value="1" checked>
<input type="checkbox" name="anon_redirect_dynamic" id="anon_redirect_dynamic" value="1" checked>
<input type="checkbox" name="cache_images" id="cache_images" value="1" checked>
<input type="checkbox" name="notify_group_recently_added_grandparent" id="notify_group_recently_added_grandparent" value="1" checked>
<input type="checkbox" name="notify_group_recently_added_parent" id="notify_group_recently_added_parent" value="1" checked>

View file

@ -704,3 +704,9 @@ class Config(object):
self.FIRST_RUN_COMPLETE = 1
self.CONFIG_VERSION = 21
if self.CONFIG_VERSION == 21:
if not self.ANON_REDIRECT_DYNAMIC and not self.ANON_REDIRECT:
self.ANON_REDIRECT_DYNAMIC = 1
self.CONFIG_VERSION = 22