mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:15:56 +00:00
add HOOK_ENCLOSURE_ENTRY for af_zz_imgproxy (2)
This commit is contained in:
@@ -1945,7 +1945,7 @@
|
||||
foreach ($result as $line) {
|
||||
|
||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ENCLOSURE_ENTRY) as $plugin) {
|
||||
$line = $plugin->hook_render_enclosure($line);
|
||||
$line = $plugin->hook_enclosure_entry($line);
|
||||
}
|
||||
|
||||
$url = $line["content_url"];
|
||||
|
||||
@@ -26,7 +26,7 @@ class Af_Zz_ImgProxy extends Plugin {
|
||||
function hook_enclosure_entry($enc) {
|
||||
$proxy_all = $this->host->get($this, "proxy_all");
|
||||
|
||||
$enc["url"] = $this->rewrite_url_if_needed($enc["url"], $proxy_all);
|
||||
$enc["content_url"] = $this->rewrite_url_if_needed($enc["content_url"], $proxy_all);
|
||||
|
||||
return $enc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user