]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pref/filters.php
Merge remote-tracking branch 'origin' into hookhead
[tt-rss.git] / classes / pref / filters.php
index 6a70e622c242e8236d3b9aba99d200d5011e4847..63318033ea11ee7d6ae3e352455099c33ce8f021 100644 (file)
@@ -97,12 +97,17 @@ class Pref_Filters extends Handler_Protected {
                print "<table width=\"100%\" cellspacing=\"0\" id=\"prefErrorFeedList\">";
 
                while ($line = $this->dbh->fetch_assoc($result)) {
+                       foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {
+                                       $line = $p->hook_query_headlines($line, 100);
+                               }
 
                        $entry_timestamp = strtotime($line["updated"]);
                        $entry_tags = get_article_tags($line["id"], $_SESSION["uid"]);
 
-                       $content_preview = truncate_string(
-                               strip_tags($line["content_preview"]), 100, '...');
+                       if(isset($line["modified_preview"]))
+                               $content_preview = strip_tags($line["content_preview"]);
+                       else
+                               $content_preview = truncate_string(strip_tags($line["content_preview"]), 100, '...');
 
                        if ($line["feed_title"])
                                $feed_title = $line["feed_title"];