update post class