akismet integration
This commit is contained in:
@@ -30,6 +30,11 @@ module Danbooru
|
||||
config.x.git_hash = nil
|
||||
end
|
||||
|
||||
if ENV["DANBOORU_RAKISMET_KEY"]
|
||||
config.rakismet.key = ENV["DANBOORU_RAKISMET_KEY"]
|
||||
config.rakismet.url = ENV["DANBOORU_RAKISMET_URL"]
|
||||
end
|
||||
|
||||
config.after_initialize do
|
||||
Rails.application.routes.default_url_options = {
|
||||
host: Danbooru.config.hostname,
|
||||
|
||||
@@ -117,6 +117,10 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
resources :dmails, :only => [:new, :create, :index, :show, :destroy] do
|
||||
member do
|
||||
post :spam
|
||||
post :ham
|
||||
end
|
||||
collection do
|
||||
post :mark_all_as_read
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user