rewriting some logic to handle bbpress forum notification clearing