From 195ec3896beb43c56b1549141472654be128117c Mon Sep 17 00:00:00 2001 From: Parziphal Date: Fri, 6 Jun 2014 02:29:01 -0500 Subject: [PATCH] Fixed #91. --- app/models/TagAlias.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/TagAlias.php b/app/models/TagAlias.php index 5ad7a0d..95b3315 100755 --- a/app/models/TagAlias.php +++ b/app/models/TagAlias.php @@ -129,7 +129,7 @@ class TagAlias extends Rails\ActiveRecord\Base ->where("tags.name LIKE ?", $this->name) ->take()->each(function($post) use ($user_id, $ip_addr) { $post->reload(); - $post->updateAttributes(['tags' => $post->tags(), 'updater_user_id' => $user_id, 'updater_ip_addr' => $ip_addr]); + $post->updateAttributes(['tags' => $post->cached_tags, 'updater_user_id' => $user_id, 'updater_ip_addr' => $ip_addr]); }); Moebooru\CacheHelper::expire_tag_version();