homepage: refactor and fix overrides not being applied

This commit is contained in:
yusing
2025-02-25 11:31:06 +08:00
parent 626d48d151
commit ac72f77a74
8 changed files with 75 additions and 67 deletions

View File

@@ -86,8 +86,8 @@ func GetFavIcon(w http.ResponseWriter, req *http.Request) {
}
var result *fetchResult
hp := r.HomepageConfig()
if !hp.IsEmpty() && hp.Icon != nil {
hp := r.HomepageItem()
if hp.Icon != nil {
if hp.Icon.IconSource == homepage.IconSourceRelative {
result = findIcon(r, req, hp.Icon.Value)
} else {