Merge branch 'master' of github.com:r888888888/danbooru
This commit is contained in:
@@ -139,7 +139,7 @@ class Tag < ActiveRecord::Base
|
|||||||
if category
|
if category
|
||||||
category_id = categories.value_for(category)
|
category_id = categories.value_for(category)
|
||||||
|
|
||||||
if category_id != tag.category && (CurrentUser.is_builder? || tag.post_count <= 100)
|
if category_id != tag.category && (CurrentUser.is_builder? || tag.post_count <= 50)
|
||||||
tag.update_column(:category, category_id)
|
tag.update_column(:category, category_id)
|
||||||
tag.update_category_cache_for_all
|
tag.update_category_cache_for_all
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user