forked from e621ng/e621ng
potential fix for alias/implication status bug
This commit is contained in:
parent
87447a51c3
commit
afa0dcae20
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
config/database.yml
|
||||
config/danbooru_local_config.rb
|
||||
config/deploy/*.rb
|
||||
config/application.yml
|
||||
db/*.sqlite3
|
||||
log/*.log
|
||||
tmp/*
|
||||
|
@ -28,12 +28,13 @@ class TagAliasRequest
|
||||
end
|
||||
|
||||
def build_tag_alias
|
||||
TagAlias.new(
|
||||
x = TagAlias.new(
|
||||
:antecedent_name => antecedent_name,
|
||||
:consequent_name => consequent_name,
|
||||
:status => "pending",
|
||||
:skip_secondary_validations => skip_secondary_validations
|
||||
)
|
||||
x.status = "pending"
|
||||
x
|
||||
end
|
||||
|
||||
def build_forum_topic(tag_alias_id)
|
||||
|
@ -28,12 +28,13 @@ class TagImplicationRequest
|
||||
end
|
||||
|
||||
def build_tag_implication
|
||||
TagImplication.new(
|
||||
x = TagImplication.new(
|
||||
:antecedent_name => antecedent_name,
|
||||
:consequent_name => consequent_name,
|
||||
:status => "pending",
|
||||
:skip_secondary_validations => skip_secondary_validations
|
||||
)
|
||||
x.status = "pending"
|
||||
x
|
||||
end
|
||||
|
||||
def build_forum_topic(tag_implication_id)
|
||||
|
Loading…
Reference in New Issue
Block a user