mirror of
https://github.com/discourse/discourse.git
synced 2025-03-11 13:45:34 +08:00

This PR fixes an error that would be thrown in some edge cases where the composer is opened for a post instance without an associated topic model already loaded. An example of such edge cases would be, a plugin trying to edit a post outside the topic view. This was causing an error that would prevent the composer from being opened.