Fixed the condition when publishing comment. bugid:111506