From 81add145658029d161eda4c3ea121672619ee2d9 Mon Sep 17 00:00:00 2001 From: edshot99 Date: Wed, 13 Nov 2024 00:08:08 -0600 Subject: [PATCH] make the guest warning ('Over 18?') configurable --- app/views/static/_guest_warning.html.erb | 2 ++ config/danbooru_default_config.rb | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/app/views/static/_guest_warning.html.erb b/app/views/static/_guest_warning.html.erb index 793d708ae..6e758f3cd 100644 --- a/app/views/static/_guest_warning.html.erb +++ b/app/views/static/_guest_warning.html.erb @@ -1,3 +1,4 @@ +<% if Danbooru.config.guest_warning? %> +<% end %> diff --git a/config/danbooru_default_config.rb b/config/danbooru_default_config.rb index 7255ce0f3..c77197c79 100644 --- a/config/danbooru_default_config.rb +++ b/config/danbooru_default_config.rb @@ -29,6 +29,10 @@ module Danbooru false end + def guest_warning? + true + end + # The canonical hostname of the site. def hostname Socket.gethostname