From 47e6821a31b249b181e9770b0dcbad58d6fac2b1 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 2 Jun 2020 18:18:37 -0500 Subject: [PATCH] config: remove `customize_new_user` config option. --- app/models/user.rb | 5 ----- config/danbooru_default_config.rb | 14 -------------- 2 files changed, 19 deletions(-) diff --git a/app/models/user.rb b/app/models/user.rb index 0d19af1d9..6b3e3929c 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -80,7 +80,6 @@ class User < ApplicationRecord validates_presence_of :comment_threshold before_validation :normalize_blacklisted_tags before_create :promote_to_admin_if_first_user - before_create :customize_new_user has_many :artists, foreign_key: :creator_id has_many :artist_versions, foreign_key: :updater_id has_many :artist_commentary_versions, foreign_key: :updater_id @@ -256,10 +255,6 @@ class User < ApplicationRecord end end - def customize_new_user - Danbooru.config.customize_new_user(self) - end - def level_string_was level_string(level_was) end diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index f44fb2621..55e145a19 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -56,20 +56,6 @@ module Danbooru "#{source_code_url}/issues" end - # Set the default level, permissions, and other settings for new users here. - def customize_new_user(user) - # user.level = User::Levels::MEMBER - # user.can_approve_posts = false - # user.can_upload_free = false - # - # user.comment_threshold = -1 - # user.blacklisted_tags = ["spoilers", "guro", "scat", "furry -rating:s"].join("\n") - # user.default_image_size = "large" - # user.per_page = 20 - # user.disable_tagged_filenames = false - true - end - # An array of regexes containing disallowed usernames. def user_name_blacklist []