diff --git a/actions/detail.go b/actions/detail.go index 4efd085..2828cbc 100644 --- a/actions/detail.go +++ b/actions/detail.go @@ -46,6 +46,7 @@ func Detail(c *gin.Context) { if err != nil { status = http.StatusInternalServerError c.Error(err) + return } if isApproveComment == true { return diff --git a/actions/index.go b/actions/index.go index a4f5a42..9f10daf 100644 --- a/actions/index.go +++ b/actions/index.go @@ -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) }()