Merge remote-tracking branch 'origin/feat/1.2.0/question' into test

This commit is contained in:
LinkinStars 2023-10-08 10:30:27 +08:00
commit cd3ee4ca5d
1 changed files with 7 additions and 0 deletions

View File

@ -130,5 +130,12 @@ func (sc *SiteInfoController) GetManifestJson(ctx *gin.Context) {
resp.Icons["48"] = branding.Favicon
resp.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)
}