Changes status to publish when publishing immediately.

Fixes #1602