]> git.wh0rd.org - tt-rss.git/commitdiff
unfuck headlines_hook for syndicated feeds
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Aug 2013 14:26:34 +0000 (18:26 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Aug 2013 14:26:34 +0000 (18:26 +0400)
classes/handler/public.php

index 7fb2771bdaf495501a2e86ef42a9aa01f938f7ad..0bdc2def59e7f4f02ef5c123a92eed163268358d 100644 (file)
@@ -85,8 +85,9 @@ class Handler_Public extends Handler {
                        }
 
                        $tpl->setVariable('SELF_URL', htmlspecialchars(get_self_url_prefix()), true);
-                       $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100, '...');
                        while ($line = $this->dbh->fetch_assoc($result)) {
+                               $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100, '...');
+
                                foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {
                                        $line = $p->hook_query_headlines($line);
                                }