added functionality for email invites. link now redirects them to the index page, opens up login flow if not logged in, then opens new post flow, with the thread_id attached in the email