diff options
author | Andrew Dolgov <[email protected]> | 2023-07-14 18:53:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-07-14 18:53:14 +0300 |
commit | 272e6e75fe5fa9eae3f8daf4788318b60c539fe7 (patch) | |
tree | c1daf0ce063ee7ffae1485fe763b3f712c2fc22b | |
parent | 46f97a2d968ff5b438127394a23a69ec4ca81cc2 (diff) |
disable readability hook for now
-rw-r--r-- | init.php | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -243,17 +243,17 @@ class Af_Lemmy extends Plugin { } } - Debug::log("trying to extract full content using readability...", Debug::LOG_VERBOSE); - - $this->host->run_hooks_callback(PluginHost::HOOK_GET_FULL_TEXT, - function ($result) use (&$article, &$found) { - if ($result && mb_strlen($result) >= 128) { - $article["content"] .= "<hr/>" . $result; - $found = true; - return true; - } - }, - $entry_href); + // Debug::log("trying to extract full content using readability...", Debug::LOG_VERBOSE); + + // $this->host->run_hooks_callback(PluginHost::HOOK_GET_FULL_TEXT, + // function ($result) use (&$article, &$found) { + // if ($result && mb_strlen($result) >= 128) { + // $article["content"] .= "<hr/>" . $result; + // $found = true; + // return true; + // } + // }, + // $entry_href); } else { Debug::log("BODY: skipping because of content type: $content_type", Debug::LOG_VERBOSE); |