Add DMCA complaint form.

Add a form for submitting DMCA complaints. The complaint is emailed to
the site owner, and a confirmation email is sent to the submitter.
This commit is contained in:
evazion
2022-10-11 15:45:03 -05:00
parent 8fbc6d1d3a
commit 24bc6aa949
12 changed files with 278 additions and 12 deletions

View File

@@ -91,6 +91,11 @@ module Danbooru
"webmaster@#{Danbooru.config.hostname}"
end
# The email address where DMCA complaints should be sent.
def dmca_email
"dmca@#{Danbooru.config.hostname}"
end
# The email address to use for Dmail notifications.
def notification_email
"notifications@#{Danbooru.config.hostname}"

View File

@@ -296,6 +296,9 @@ Rails.application.routes.draw do
get :diff
end
end
resource :dmca, only: [:create, :show] do
get :template
end
# Legacy Danbooru 1 API endpoints
get "/tag/index.xml", :controller => "legacy", :action => "tags", :format => "xml"