discourse/discourse — pull request #3033 by verdi327 (2014-12-09 19:48:08+00:00)
Title: [bug fix] Use with_deleted when looking up soft deleted topics for recovery

When recovering a post, at times the topic related to the post still returns nil. I'm not sure if this is bc the reference to the post that PostDestroyer stores needs to be reloaded first, but using the with_deleted method to lookup the topic works well.

This was a bug we ran into when working on Akismet plugin.