fixes #749, fixes tag alias related regressions

This commit is contained in:
albert
2013-03-05 22:51:21 -05:00
parent 80f63cc587
commit e53d71b31b
5 changed files with 64 additions and 45 deletions

View File

@@ -51,9 +51,8 @@ class TagAliasCorrection
def fix!
clear_cache
Post.raw_tag_match(tag_alias.antecedent_name).each do |post|
post.save
end
tag_alias.update_cache
tag_alias.update_posts
tag_alias.antecedent_tag.fix_post_count if tag_alias.antecedent_tag
tag_alias.consequent_tag.fix_post_count if tag_alias.consequent_tag
end