[Config] Decouple default blacklist from user customization

This commit is contained in:
Earlopain 2022-12-22 12:44:07 +01:00
parent eaa1bc10b2
commit f744463d29
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897

View File

@ -85,17 +85,17 @@ module Danbooru
# Set the default level, permissions, and other settings for new users here.
def customize_new_user(user)
user.blacklisted_tags = default_blacklist.join("\n")
user.comment_threshold = -10
user.enable_keyboard_navigation = true
user.enable_auto_complete = true
user.enable_keyboard_navigation = true
user.per_page = 75
user.show_post_statistics = true
user.style_usernames = true
user.blacklisted_tags = 'gore
scat
watersports
young -rating:s
loli
shota
fart'
end
def default_blacklist
[]
end
# This allows using statically linked copies of ffmpeg in non default locations. Not universally supported across