1
0
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:
Andrew Dolgov
2017-03-23 15:19:25 +03:00
parent 9c3c0ace6b
commit 388d4dfa88
2 changed files with 33 additions and 1 deletions

View File

@@ -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);
}
}