mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 04:05:55 +00:00
af_readability: fix HOOK_GET_FULL_TEXT not being installed because plugin init() is called before load_data()
This commit is contained in:
@@ -100,18 +100,6 @@ class Article extends Handler_Protected {
|
||||
$pluginhost->load_all(PluginHost::KIND_ALL, $owner_uid);
|
||||
$pluginhost->load_data();
|
||||
|
||||
/*$af_readability = $pluginhost->get_plugin("Af_Readability");
|
||||
|
||||
if ($af_readability) {
|
||||
$enable_share_anything = $pluginhost->get($af_readability, "enable_share_anything");
|
||||
|
||||
if ($enable_share_anything) {
|
||||
$extracted_content = $af_readability->extract_content($url);
|
||||
|
||||
if ($extracted_content) $content = $extracted_content;
|
||||
}
|
||||
}*/
|
||||
|
||||
foreach ($pluginhost->get_hooks(PluginHost::HOOK_GET_FULL_TEXT) as $p) {
|
||||
$extracted_content = $p->hook_get_full_text($url);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user