From e915ebe46ecc76bd00e19a9cc63764ff2e277315 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 1 Aug 2025 08:30:49 +0200 Subject: Rework fetch favicons (#7767) * Use main function `httpGet()` instead of local one; * Use HTTP cache, also between users; * Do not default to feed URL when there is no website URL TODO for later: consider supporting Atom's `` and RSS 2.0's `` https://github.com/FreshRSS/FreshRSS/issues/7774 --- p/f.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'p') diff --git a/p/f.php b/p/f.php index 98e50389b..fdec38c02 100644 --- a/p/f.php +++ b/p/f.php @@ -39,6 +39,12 @@ if (($ico_mtime == false || $ico_mtime < $txt_mtime || ($ico_mtime < time() - (m show_default_favicon(1800); exit(); } + + FreshRSS_Context::initSystem(); + if (!FreshRSS_Context::hasSystemConf()) { + header('HTTP/1.1 500 Internal Server Error'); + die('Invalid system init!'); + } if (!download_favicon($url, $ico)) { // Download failed if ($ico_mtime == false) { -- cgit v1.2.3