fixes #2116
This commit is contained in:
@@ -19,7 +19,7 @@ class Favorite < ActiveRecord::Base
|
||||
post.append_user_to_fav_string(user.id)
|
||||
User.update_all("favorite_count = favorite_count + 1", {:id => user.id})
|
||||
user.favorite_count += 1
|
||||
post.fav_count += 1
|
||||
# post.fav_count += 1 # this is handled in Post#clean_fav_string!
|
||||
post.score += 1 if user.is_gold?
|
||||
end
|
||||
|
||||
|
||||
@@ -607,7 +607,7 @@ class Post < ActiveRecord::Base
|
||||
|
||||
module FavoriteMethods
|
||||
def clean_fav_string?
|
||||
rand(100) < 50
|
||||
true
|
||||
end
|
||||
|
||||
def clean_fav_string!
|
||||
|
||||
Reference in New Issue
Block a user