Close #8 implemented publish toggle