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
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2025-08-01 08:30:49 +02:00
1 parent 188cc0d063
commit e915ebe46e
7 files changed
+47 -93

No files matched your search

@@ -369,7 +369,6 @@ class FreshRSS_subscription_Controller extends FreshRSS_ActionController {
}
if ($favicon_uploaded && !$resetFavicon) {
require_once(LIB_PATH . '/favicons.php');
$max_size = FreshRSS_Context::systemConf()->limits['max_favicon_upload_size'];
if ($favicon_size > $max_size) {
Minz_Request::bad(_t('feedback.sub.feed.favicon.too_large', format_bytes($max_size)), $url_redirect);