Add privacy policy (#4415).
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user