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:
parent
1e46c40cc6
commit
ff84acd9d7
@ -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})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user