diff options
| author | 2025-08-01 08:30:49 +0200 | |
|---|---|---|
| committer | 2025-08-01 08:30:49 +0200 | |
| commit | e915ebe46ecc76bd00e19a9cc63764ff2e277315 (patch) | |
| tree | 4cb7caf3c8ad5328dab45097c3f92acabc621f5b /p | |
| parent | 188cc0d063b15be22cdd230b808c0bce5cff68e7 (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.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |
