summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-07-14 18:53:14 +0300
committerAndrew Dolgov <[email protected]>2023-07-14 18:53:14 +0300
commit272e6e75fe5fa9eae3f8daf4788318b60c539fe7 (patch)
treec1daf0ce063ee7ffae1485fe763b3f712c2fc22b
parent46f97a2d968ff5b438127394a23a69ec4ca81cc2 (diff)
disable readability hook for now
-rw-r--r--init.php22
1 files changed, 11 insertions, 11 deletions
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"] .= "<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);