diff options
author | Andrew Dolgov <[email protected]> | 2023-10-11 17:34:01 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-11 17:34:01 +0300 |
commit | 9556519e67773532b94b0d2fd6dad838b63e29eb (patch) | |
tree | f8fa24e4b27ab07e3e264fa4dd0e8b6d7ebfa9b8 /classes/handler | |
parent | c779e2ba0d71942579dd27ccdcad0295bd06e45f (diff) |
fix content_preview not shown in JSON shared feed
Diffstat (limited to 'classes/handler')
-rwxr-xr-x | classes/handler/public.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php index 50aa7b1a3..8134eeff2 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -192,7 +192,7 @@ class Handler_Public extends Handler { while ($line = $result->fetch()) { - $line["content_preview"] = Sanitizer::sanitize(truncate_string(strip_tags($line["content_preview"]), 100, '...')); + $line["content_preview"] = Sanitizer::sanitize(truncate_string(strip_tags($line["content"]), 100, '...')); $line["tags"] = Article::_get_tags($line["id"], $owner_uid); PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_QUERY_HEADLINES, |