FIX: When approving/rejecting a post it should delete the user action

This commit is contained in:
Robin Ward
2015-04-24 15:25:47 -04:00
parent 3a6efa25f0
commit 3660fe4f60
4 changed files with 22 additions and 10 deletions

View File

@@ -24,11 +24,7 @@ class PostEnqueuer
end
if queued_post.save
UserAction.log_action!(action_type: UserAction::PENDING,
user_id: @user.id,
acting_user_id: @user.id,
target_topic_id: args[:topic_id],
queued_post_id: queued_post.id)
queued_post.create_pending_action
else
add_errors_from(queued_post)
end