]> git.wh0rd.org - tt-rss.git/blobdiff - classes/feeds.php
queryFeedHeadlines: remove obsolete content_preview
[tt-rss.git] / classes / feeds.php
index 7f5fd10af3fa8996856b3de80bcf36d3abc26879..5fc75cb2fdddaefde68479e3c63651aac65b8758 100644 (file)
@@ -148,7 +148,7 @@ class Feeds extends Handler_Protected {
                                        $override_order = false, $include_children = false) {
 
                if (isset($_REQUEST["DevForceUpdate"]))
-                       header("Content-Type: text/plain");
+                       header("Content-Type: text/plain; charset=utf-8");
 
                $disable_cache = false;
 
@@ -292,7 +292,7 @@ class Feeds extends Handler_Protected {
                        $expand_cdm = get_pref('CDM_EXPANDED');
 
                        while ($line = $this->dbh->fetch_assoc($result)) {
-                               $line["content_preview"] =  "— " . truncate_string(strip_tags($line["content_preview"]), 250);
+                               $line["content_preview"] =  "— " . truncate_string(strip_tags($line["content"]), 250);
 
                                foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {
                                        $line = $p->hook_query_headlines($line, 250, false);