FIX: Recovering a deleted post was not updating a topic's statistics

This commit is contained in:
Robin Ward
2013-07-09 12:15:55 -04:00
parent 1be08dbcb5
commit d98f288aa4
2 changed files with 4 additions and 1 deletions

View File

@ -121,6 +121,8 @@ class PostsController < ApplicationController
post = find_post_from_params
guardian.ensure_can_recover_post!(post)
post.recover!
post.topic.update_statistics
render nothing: true
end