FEATURE: Watched Words: when posts contain words, do one of flag, require approval, censor, or block

This commit is contained in:
Neil Lalonde
2017-06-28 16:56:44 -04:00
parent 9d774a951a
commit 24cb950432
49 changed files with 1096 additions and 37 deletions

View File

@ -270,6 +270,12 @@ Discourse::Application.routes.draw do
get "dump_heap"=> "diagnostics#dump_heap", constraints: AdminConstraint.new
get "dump_statement_cache"=> "diagnostics#dump_statement_cache", constraints: AdminConstraint.new
resources :watched_words, only: [:index, :create, :update, :destroy], constraints: AdminConstraint.new do
collection do
get "action/:id" => "watched_words#index"
end
end
post "watched_words/upload" => "watched_words#upload"
end # admin namespace
get "email_preferences" => "email#preferences_redirect", :as => "email_preferences_redirect"