mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 22:01:30 +00:00
enable caching of media in article enclosures
This commit is contained in:
@@ -1816,6 +1816,11 @@
|
||||
|
||||
if (db_num_rows($result) > 0) {
|
||||
while ($line = db_fetch_assoc($result)) {
|
||||
|
||||
if (file_exists(CACHE_DIR . '/images/' . sha1($line["content_url"]))) {
|
||||
$line["content_url"] = get_self_url_prefix() . '/public.php?op=cached_url&hash=' . sha1($line["content_url"]);
|
||||
}
|
||||
|
||||
array_push($rv, $line);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user