mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-01 14:43:07 +02:00
homepage: refactor and fix overrides not being applied
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user