approvals: remove post undelete endpoint.
Remove `POST /moderator/post/undelete` endpoint. Replace it with `POST /post_approvals` instead. Fixes it so that undeleting a post has the same behavior as approving a post. Namely, it reloads the page instead of just flashing a "Post was undeleted" message.
This commit is contained in:
@@ -19,12 +19,11 @@ Rails.application.routes.draw do
|
||||
get :random
|
||||
end
|
||||
end
|
||||
resources :posts, :only => [:delete, :undelete, :expunge, :confirm_delete] do
|
||||
resources :posts, :only => [:delete, :expunge, :confirm_delete] do
|
||||
member do
|
||||
get :confirm_delete
|
||||
post :expunge
|
||||
post :delete
|
||||
post :undelete
|
||||
get :confirm_move_favorites
|
||||
post :move_favorites
|
||||
get :confirm_ban
|
||||
|
||||
Reference in New Issue
Block a user