增加ico文件
This commit is contained in:
@@ -225,6 +225,11 @@ func UpdatePost(c *gin.Context) {
|
||||
updates["published_at"] = &now
|
||||
}
|
||||
}
|
||||
// 如果文章是已发布状态但没有发布时间,设置发布时间
|
||||
if post.Status == "published" && post.PublishedAt == nil {
|
||||
now := time.Now()
|
||||
updates["published_at"] = &now
|
||||
}
|
||||
updates["is_top"] = req.IsTop
|
||||
|
||||
// 处理标签
|
||||
|
||||
Reference in New Issue
Block a user