use post_status_update() and set_alert_dispatch()

This is a pull request based on a discussion #1668.