]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove old-style readability loading
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Jun 2018 19:17:10 +0000 (22:17 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 20 Jun 2018 19:17:10 +0000 (22:17 +0300)
plugins/af_readability/init.php
plugins/af_redditimgur/init.php

index 807231390b43be2361715e09f1cff7b214dbe6eb..48d9c2e37d50daac31eb2d9a3ba5355f4de94ed0 100755 (executable)
@@ -142,8 +142,6 @@ class Af_Readability extends Plugin {
        public function extract_content($url) {
                global $fetch_effective_url;
 
-               if (!class_exists("Readability")) require_once(dirname(dirname(__DIR__)). "/lib/readability/Readability.php");
-
                $tmp = fetch_file_contents([
                        "url" => $url,
                        "http_accept" => "text/*",
index 8a662de28734200d6b6ca14c3461de43a7b729c3..735db1d646bd3630439d7cac910ea7d71ea49c29 100755 (executable)
@@ -557,8 +557,6 @@ class Af_RedditImgur extends Plugin {
                if (!defined('NO_CURL') && function_exists("curl_init") && $this->host->get($this, "enable_readability") &&
                        mb_strlen(strip_tags($article["content"])) <= 150) {
 
-                       if (!class_exists("Readability")) require_once(dirname(dirname(__DIR__)). "/lib/readability/Readability.php");
-
                        // do not try to embed posts linking back to other reddit posts
                        if ($url &&     strpos($url, "reddit.com") === FALSE) {