Thank you very much! That looks like a fine solution 
Issue noticed
Unfortunately, it seems a little bit broken at the moment - after updating, I got a bunch of notices in the system log and the favicon wouldn’t update.
From looking at the commit, it appears it might be something to do with $fetch_url needing to be replaced with $feed_obj->feed_url in…
$site_url = mb_substr(rewrite_relative_url($fetch_url, clean($rss->get_link())), 0, 245);
…line 622.
Reading around the commit, it seems like line 595 of classes/feeds.php might also need updated, not sure:
$feed_data, $fetch_url, $pff_owner_uid, $feed);
Likewise for line 836:
"fetch_url" => $fetch_url,
However, I’m making wild guesses in the hopes it may be helpful - feel free to disregard!
System logs
E_NOTICE (8)
classes/urlhelper.php:46
Undefined index: scheme
1. classes/urlhelper.php(46): ttrss_error_handler(8, Undefined index: scheme, classes/urlhelper.php, 46, [{"url":"","rel_url":"\/favicon.ico","rel_parts":{"path":"\/favicon.ico","host":null},"parts":{"path":""}})
2. include/functions.php(197): rewrite_relative(, /favicon.ico)
3. classes/rssutils.php(1936): rewrite_relative_url(, /favicon.ico)
4. classes/rssutils.php(1724): get_favicon_url()
5. classes/rssutils.php(640): check_feed_favicon(, 461)
6. classes/feeds.php(682): update_rss_feed(461, 1)
7. backend.php(133): updatedebugger()
Remote IP: 2600:6c5e:[redacted]
Request URI: /app/tt-rss/backend.php
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0 digitalcircuit 4:03 am
E_NOTICE (8)
classes/urlhelper.php:45
Undefined index: host
1. classes/urlhelper.php(45): ttrss_error_handler(8, Undefined index: host, classes/urlhelper.php, 45, [{"url":"","rel_url":"\/favicon.ico","rel_parts":{"path":"\/favicon.ico"},"parts":{"path":""}})
2. include/functions.php(197): rewrite_relative(, /favicon.ico)
3. classes/rssutils.php(1936): rewrite_relative_url(, /favicon.ico)
4. classes/rssutils.php(1724): get_favicon_url()
5. classes/rssutils.php(640): check_feed_favicon(, 461)
6. classes/feeds.php(682): update_rss_feed(461, 1)
7. backend.php(133): updatedebugger()
Remote IP: 2600:6c5e:[redacted]
Request URI: /app/tt-rss/backend.php
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0 digitalcircuit 4:03 am