fix content_preview not shown in JSON shared feed
This commit is contained in:
parent
c779e2ba0d
commit
9556519e67
|
@ -192,7 +192,7 @@ class Handler_Public extends Handler {
|
||||||
|
|
||||||
while ($line = $result->fetch()) {
|
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);
|
$line["tags"] = Article::_get_tags($line["id"], $owner_uid);
|
||||||
|
|
||||||
PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_QUERY_HEADLINES,
|
PluginHost::getInstance()->chain_hooks_callback(PluginHost::HOOK_QUERY_HEADLINES,
|
||||||
|
|
Loading…
Reference in New Issue