Views: Check the thread as well in edit_post
Models: Add the opening post ID to the Thread model