]> git.wh0rd.org - tt-rss.git/blobdiff - classes/api.php
queryFeedHeadlines: remove obsolete content_preview
[tt-rss.git] / classes / api.php
index e3fcc8d3d3e73aad4b7f27bbaca71d6b87046005..8e279521a51997c281d71e7619c07d147728a60b 100644 (file)
@@ -642,7 +642,7 @@ class API extends Handler {
                        $headlines = array();
 
                        while ($line = db_fetch_assoc($result)) {
-                               $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100);
+                               $line["content_preview"] = truncate_string(strip_tags($line["content"]), 100);
                                foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {
                                        $line = $p->hook_query_headlines($line, 100, true);
                                }