From 9556519e67773532b94b0d2fd6dad838b63e29eb Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 11 Oct 2023 17:34:01 +0300 Subject: [PATCH] fix content_preview not shown in JSON shared feed --- classes/handler/public.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,