def update_status
      @post = LatoBlog::Post.find_by(id: params[:id])
      return unless check_post_presence

      @post.update(meta_status: params[:status])
    end
def update_status
      @post = LatoBlog::Post.find_by(id: params[:id])
      return unless check_post_presence

      @post.update(meta_status: params[:status])
    end
This function updates the status of a post.