So this is most of the way there, but it's possible that $posterid = 0. For example, if it was originally an anon support request with just the email provided, and then they replied to their own support request. So this should also have similar checks as above, where we make sure that the user exists (otherwise fall back...)