modified the alert logic to only send alerts if there are new posts