fix flagging and post filter

cant flag posts that don't exist anymore