feat(siteinfo): update manifest.json site name

This commit is contained in:
LinkinStars 2023-10-08 10:29:53 +08:00
parent 545342db50
commit 79d025f0b1
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)
}