A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
feat(siteinfo): update manifest.json site name
LinkinStars79d025f0b1d2
diff --git a/internal/controller/siteinfo_controller.go b/internal/controller/siteinfo_controller.goindex 4cdba56f..04e50ee8 100644--- a/internal/controller/siteinfo_controller.go+++ b/internal/controller/siteinfo_controller.go@@ -130,5 +130,12 @@ func (sc *SiteInfoController) GetManifestJson(ctx *gin.Context) {resp.Icons["48"] = branding.Faviconresp.Icons["128"] = branding.Favicon}+ siteGeneral, err := sc.siteInfoService.GetSiteGeneral(ctx)+ if err != nil {+ log.Error(err)+ } else {+ resp.Name = siteGeneral.Name+ resp.ShortName = siteGeneral.Name+ }ctx.JSON(http.StatusOK, resp)}