/artists/banned, /favorites: fix redirects for non-html requests.
ref: https://danbooru.donmai.us/forum_topics/9127?page=287#forum_post_161549
This commit is contained in:
@@ -15,7 +15,7 @@ class ArtistsController < ApplicationController
|
||||
end
|
||||
|
||||
def banned
|
||||
redirect_to artists_path(search: { is_banned: "true", order: "updated_at" })
|
||||
redirect_to artists_path(search: { is_banned: "true", order: "updated_at" }, format: request.format.symbol)
|
||||
end
|
||||
|
||||
def ban
|
||||
|
||||
Reference in New Issue
Block a user