Add privacy policy (#4415).

This commit is contained in:
evazion
2020-05-26 00:54:27 -05:00
parent f0a573e1e5
commit b5fc8fff6e
7 changed files with 501 additions and 0 deletions

View File

@@ -28,6 +28,11 @@ module Danbooru
Socket.gethostname
end
# The canonical url for the site (e.g. https://danbooru.donmai.us)
def canonical_url
"https://#{hostname}"
end
# Contact email address of the admin.
def contact_email
"webmaster@#{hostname}"

View File

@@ -367,6 +367,7 @@ Rails.application.routes.draw do
get "/sitemap" => "static#sitemap"
get "/opensearch" => "static#opensearch", :as => "opensearch"
get "/privacy" => "static#privacy_policy", :as => "privacy_policy"
get "/static/keyboard_shortcuts" => "static#keyboard_shortcuts", :as => "keyboard_shortcuts"
get "/static/bookmarklet" => "static#bookmarklet", :as => "bookmarklet"
get "/static/site_map" => "static#site_map", :as => "site_map"