remove is_flagged from user limit calculations, deleting a posts now takes it out of pending status

This commit is contained in:
albert
2013-02-22 16:26:35 -05:00
parent 3f57952710
commit d788e8c1c0
3 changed files with 3 additions and 2 deletions

View File

@@ -739,6 +739,7 @@ class Post < ActiveRecord::Base
Post.transaction do
update_column(:is_deleted, true)
update_column(:is_pending, false)
give_favorites_to_parent
update_children_on_destroy
update_parent_on_destroy