]> git.wh0rd.org - tt-rss.git/commitdiff
af_zz_imgproxy: disable api render hook: pointless, because api clients won't have...
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 13 Feb 2017 05:46:36 +0000 (08:46 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 13 Feb 2017 05:46:36 +0000 (08:46 +0300)
plugins/af_zz_imgproxy/init.php

index b2ec1aa8f56d984c3189ad2f88bdc97b88dc1caa..047f5a211ae57070d38b5068c660c88413f6ed88 100644 (file)
@@ -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"]);