aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-08-01 08:30:49 +0200
committerGravatar GitHub <noreply@github.com> 2025-08-01 08:30:49 +0200
commite915ebe46ecc76bd00e19a9cc63764ff2e277315 (patch)
tree4cb7caf3c8ad5328dab45097c3f92acabc621f5b /p
parent188cc0d063b15be22cdd230b808c0bce5cff68e7 (diff)
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 `<icon>` and RSS 2.0's `<image>` https://github.com/FreshRSS/FreshRSS/issues/7774
Diffstat (limited to 'p')
-rw-r--r--p/f.php6
1 files changed, 6 insertions, 0 deletions
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) {