tag alias corrections: fix ActionView::Template::Error exception (#3668).
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
class TagAliasCorrectionsController < ApplicationController
|
class TagAliasCorrectionsController < ApplicationController
|
||||||
before_action :builder_only
|
before_action :builder_only, only: [:create]
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@correction = TagAliasCorrection.new(params[:tag_alias_id])
|
@correction = TagAliasCorrection.new(params[:tag_alias_id])
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class TagAliasCorrection
|
|||||||
end
|
end
|
||||||
|
|
||||||
def fill_hash!
|
def fill_hash!
|
||||||
res = HTTParty.get("http://#{hostname}/tag_aliases/#{tag_alias_id}/correction.json", Danbooru.config.httparty_options)
|
res = HTTParty.get("https://#{hostname}.#{Danbooru.config.domain}/tag_aliases/#{tag_alias_id}/correction.json", Danbooru.config.httparty_options)
|
||||||
if res.success?
|
if res.success?
|
||||||
json = JSON.parse(res.body)
|
json = JSON.parse(res.body)
|
||||||
statistics_hash["antecedent_cache"] = json["antecedent_cache"]
|
statistics_hash["antecedent_cache"] = json["antecedent_cache"]
|
||||||
|
|||||||
Reference in New Issue
Block a user