From 272e6e75fe5fa9eae3f8daf4788318b60c539fe7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 14 Jul 2023 18:53:14 +0300 Subject: disable readability hook for now --- init.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'init.php') diff --git a/init.php b/init.php index 9b8fb90..6c5301c 100644 --- a/init.php +++ b/init.php @@ -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"] .= "
" . $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"] .= "
" . $result; + // $found = true; + // return true; + // } + // }, + // $entry_href); } else { Debug::log("BODY: skipping because of content type: $content_type", Debug::LOG_VERBOSE); -- cgit v1.2.3