diff --git a/app/models/favorite.rb b/app/models/favorite.rb index 9fc50c878..f913f6669 100644 --- a/app/models/favorite.rb +++ b/app/models/favorite.rb @@ -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 diff --git a/app/models/post.rb b/app/models/post.rb index aae373a67..84eb83f58 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -607,7 +607,7 @@ class Post < ActiveRecord::Base module FavoriteMethods def clean_fav_string? - rand(100) < 50 + true end def clean_fav_string!