summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-11 17:34:01 +0300
committerAndrew Dolgov <[email protected]>2023-10-11 17:34:01 +0300
commit9556519e67773532b94b0d2fd6dad838b63e29eb (patch)
treef8fa24e4b27ab07e3e264fa4dd0e8b6d7ebfa9b8
parentc779e2ba0d71942579dd27ccdcad0295bd06e45f (diff)
fix content_preview not shown in JSON shared feed
-rwxr-xr-xclasses/handler/public.php2
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,