diff options
| author | 2024-08-23 16:39:34 +0200 | |
|---|---|---|
| committer | 2024-08-23 16:39:34 +0200 | |
| commit | f544da6015ac91a80fe9bb2b889611d22abb73f8 (patch) | |
| tree | 6142ef8f2f489bd28c71d20483d4777f82e63d8a /app | |
| parent | 3c2167d60b22032956e39fa536cc7684126a5b54 (diff) | |
Use .html extension for full content pages instead of .spc (#6724)
Diffstat (limited to 'app')
| -rw-r--r-- | app/Models/Feed.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 5f9212b41..50495a361 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -899,7 +899,11 @@ class FreshRSS_Feed extends Minz_Model { */ public function cacheFilename(string $url = ''): string { $simplePie = customSimplePie($this->attributes(), $this->curlOptions()); - $url = $url ?: htmlspecialchars_decode($this->url); + if ($url !== '') { + $filename = $simplePie->get_cache_filename($url); + return CACHE_PATH . '/' . $filename . '.html'; + } + $url = htmlspecialchars_decode($this->url); $filename = $simplePie->get_cache_filename($url); if ($this->kind === FreshRSS_Feed::KIND_HTML_XPATH) { return CACHE_PATH . '/' . $filename . '.html'; |
