1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

make sure to publish

This commit is contained in:
Zack Scholl 2018-07-21 14:36:10 -07:00
parent 1e46c40cc6
commit ff84acd9d7

View File

@ -730,6 +730,7 @@ func (s *Site) handlePublish(c *gin.Context) {
if !p.IsPublished { if !p.IsPublished {
message = "Unpublished" message = "Unpublished"
} }
s.sitemapUpToDate = false
c.JSON(http.StatusOK, gin.H{"success": true, "message": message}) c.JSON(http.StatusOK, gin.H{"success": true, "message": message})
} }