diff options
author | Andrew Dolgov <[email protected]> | 2021-11-14 17:07:47 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-14 17:07:47 +0300 |
commit | 55729b4bbd79c6afa913d3a4acc576eef5cfaae1 (patch) | |
tree | e52fe07161e75fe035fdede4e5e23b770eb0b53e /classes/handler | |
parent | af2f4460ce94f48aa4c3bb3176c59325b6612b32 (diff) |
fix HOOK_QUERY_HEADLINES being invoked with different argument lists, add some more phpdoc comments for base plugin class
Diffstat (limited to 'classes/handler')
-rwxr-xr-x | classes/handler/public.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index e28bb5fd2..b5282c222 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -93,11 +93,13 @@ class Handler_Public extends Handler { $line["content_preview"] = Sanitizer::sanitize(truncate_string(strip_tags($line["content"]), 100, '...')); $line["tags"] = Article::_get_tags($line["id"], $owner_uid); + $max_excerpt_length = 250; + PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_QUERY_HEADLINES, function ($result) use (&$line) { $line = $result; }, - $line); + $line, $max_excerpt_length); PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_ARTICLE_EXPORT_FEED, function ($result) use (&$line) { |