This commit is contained in:
xing 2022-12-28 16:40:18 +08:00
parent d720ba21ec
commit da2a61a606
2 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,7 @@ func Detail(c *gin.Context) {
if err != nil {
status = http.StatusInternalServerError
c.Error(err)
return
}
if isApproveComment == true {
return

View File

@ -198,6 +198,7 @@ func Index(c *gin.Context) {
if err != nil {
c.Error(err)
stat = http.StatusInternalServerError
return
}
c.HTML(stat, helper.StrJoin(wpconfig.Options.Value("template"), "/posts/index.gohtml"), ginH)
}()