summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-13 08:46:36 +0300
committerAndrew Dolgov <[email protected]>2017-02-13 08:46:36 +0300
commitab39e213b3038f2305c415ad4457c680acc5b052 (patch)
tree4e802ab65dd00380d79d23eea7d0d1b986098521 /plugins
parentff4f2b1e0ce85e53d15e0d7f96b9cd9e1bcfa83a (diff)
af_zz_imgproxy: disable api render hook: pointless, because api clients won't have an authenticated cookie-based session
Diffstat (limited to 'plugins')
-rw-r--r--plugins/af_zz_imgproxy/init.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/plugins/af_zz_imgproxy/init.php b/plugins/af_zz_imgproxy/init.php
index b2ec1aa8f..047f5a211 100644
--- a/plugins/af_zz_imgproxy/init.php
+++ b/plugins/af_zz_imgproxy/init.php
@@ -17,7 +17,6 @@ class Af_Zz_ImgProxy extends Plugin {
$host->add_hook($host::HOOK_RENDER_ARTICLE, $this);
$host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this);
- $host->add_hook($host::HOOK_RENDER_ARTICLE_API, $this);
$host->add_hook($host::HOOK_ENCLOSURE_ENTRY, $this);
$host->add_hook($host::HOOK_PREFS_TAB, $this);
@@ -37,10 +36,6 @@ class Af_Zz_ImgProxy extends Plugin {
return $this->hook_render_article_cdm($article);
}
- function hook_render_article_api($headline) {
- return $this->hook_render_article_cdm($headline["headline"], true);
- }
-
public function imgproxy() {
$url = rewrite_relative_url(SELF_URL_PATH, $_REQUEST["url"]);