From 9faf2c1fa3c8c3ed82ff4c95733a018d0f9977a7 Mon Sep 17 00:00:00 2001 From: hilariousperson <44742905+hilariousperson@users.noreply.github.com> Date: Wed, 6 Aug 2025 12:32:16 +0200 Subject: GReader API: fix incorrect favicon URL (#7792) * GReader API: fix incorrect favicon URL * Fix compatibility with custom favicons --------- Co-authored-by: Alexandre Alapetite --- app/Models/Feed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/Feed.php') diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 2b442561e..48a1d108f 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -438,7 +438,7 @@ class FreshRSS_Feed extends Minz_Model { @unlink($path . '.ico'); @unlink($path . '.txt'); } - public function favicon(): string { + public function favicon(bool $absolute = false): string { $hash = $this->hashFavicon(); $url = '/f.php?h=' . $hash; if ($this->customFavicon() @@ -446,7 +446,7 @@ class FreshRSS_Feed extends Minz_Model { && !$this->attributeBoolean('customFaviconDisallowDel')) { $url .= '&t=' . @filemtime(DATA_PATH . '/favicons/' . $hash . '.ico'); } - return Minz_Url::display($url); + return Minz_Url::display($url, absolute: $absolute); } public function _id(int $value): void { -- cgit v1.2.3