Skip to content

Commit

Permalink
fix: branding favicon might be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored and LinkinStars committed Aug 7, 2024
1 parent f0b5859 commit 264f927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/template_render/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ func (t *TemplateRenderController) OpenSearch(ctx *gin.Context) {
return
}

favicon := "favicon.ico"
favicon := general.SiteUrl + "/favicon.ico"
branding, err := t.siteInfoService.GetSiteBranding(ctx)
if err == nil {
if err == nil && len(branding.Favicon) > 0 {
favicon = branding.Favicon
}

Expand Down

0 comments on commit 264f927

Please sign in to comment.