Added default globe.svg for invalid favicons
Some checks failed
Run Integration Tests / test (push) Failing after 41s
Some checks failed
Run Integration Tests / test (push) Failing after 41s
This commit is contained in:
parent
66414952e8
commit
5032173609
8 changed files with 118 additions and 51 deletions
2
text.go
2
text.go
|
@ -103,7 +103,7 @@ func HandleTextSearch(w http.ResponseWriter, settings UserSettings, query string
|
|||
|
||||
func ensureFaviconIsCached(faviconID, rootURL string) {
|
||||
// Check if already exists in cache
|
||||
filename := fmt.Sprintf("%s_thumb.webp", faviconID)
|
||||
filename := fmt.Sprintf("%s_icon.webp", faviconID)
|
||||
cachedPath := filepath.Join(config.DriveCache.Path, "images", filename)
|
||||
|
||||
if _, err := os.Stat(cachedPath); err == nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue