fix content_preview not shown in JSON shared feed

This commit is contained in:
Andrew Dolgov 2023-10-11 17:34:01 +03:00
parent c779e2ba0d
commit 9556519e67
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 1 deletions

View File

@ -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,