增加ico文件

This commit is contained in:
2026-03-05 14:43:00 +08:00
parent 4cab051f9c
commit 6117222625
15 changed files with 288 additions and 28 deletions
+5
View File
@@ -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
// 处理标签