summaryrefslogtreecommitdiff
path: root/classes/handler/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-14 17:07:47 +0300
committerAndrew Dolgov <[email protected]>2021-11-14 17:07:47 +0300
commit55729b4bbd79c6afa913d3a4acc576eef5cfaae1 (patch)
treee52fe07161e75fe035fdede4e5e23b770eb0b53e /classes/handler/public.php
parentaf2f4460ce94f48aa4c3bb3176c59325b6612b32 (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/public.php')
-rwxr-xr-xclasses/handler/public.php4
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) {