diff --git a/api.go b/api.go index 58bedac..b1ff9dd 100644 --- a/api.go +++ b/api.go @@ -357,7 +357,6 @@ func apiTrashDelete(c *gin.Context) { return } } - c.JSON(http.StatusOK, nil) responseNotice(c, NOTICE_SUCCESS, "删除成功", "") } @@ -386,14 +385,10 @@ func apiTrashRecover(c *gin.Context) { } func responseNotice(c *gin.Context, typ, content, hl string) { - domain := setting.Conf.Mode.Domain - if i := strings.Index(domain, ":"); i > -1 { - domain = domain[0:i] - } if hl != "" { - c.SetCookie("notice_highlight", hl, 86400, "/", domain, true, false) + c.SetCookie("notice_highlight", hl, 86400, "/", "", true, false) } - c.SetCookie("notice_type", typ, 86400, "/", domain, true, false) - c.SetCookie("notice", fmt.Sprintf("[\"%s\"]", content), 86400, "/", domain, true, false) + c.SetCookie("notice_type", typ, 86400, "/", "", true, false) + c.SetCookie("notice", fmt.Sprintf("[\"%s\"]", content), 86400, "/", "", true, false) c.Redirect(http.StatusFound, c.Request.Referer()) } diff --git a/conf/app.yml b/conf/app.yml index 15e164f..cf0b79f 100644 --- a/conf/app.yml +++ b/conf/app.yml @@ -22,6 +22,8 @@ startid: 11 static: //st.deepzz.com # elasticsearch url searchurl: http://elasticsearch:9200 +# superfeedr shortname +superfeedr: deepzz # 评论相关 disqus: shortname: deepzz diff --git a/conf/tpl/feedTpl.xml b/conf/tpl/feedTpl.xml index 0d81fd0..edd0086 100644 --- a/conf/tpl/feedTpl.xml +++ b/conf/tpl/feedTpl.xml @@ -4,6 +4,7 @@