mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:45:56 +00:00
* HOOK_ENCLOSURE_ENTRY: pass article_id to handler
* DiskCache: multiple fixes; support isWritable() for cache entries, set content-disposition for send() * public/cached_url: allow selecting files from sub-caches other than images * plugins/Cache_Starred_Images: rework to use DiskCache, can be enabled per-user, properly handles article enclosures, etc
This commit is contained in:
@@ -446,7 +446,7 @@ class Article extends Handler_Protected {
|
||||
foreach ($result as $line) {
|
||||
|
||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ENCLOSURE_ENTRY) as $plugin) {
|
||||
$line = $plugin->hook_enclosure_entry($line);
|
||||
$line = $plugin->hook_enclosure_entry($line, $id);
|
||||
}
|
||||
|
||||
$url = $line["content_url"];
|
||||
|
||||
Reference in New Issue
Block a user