]> git.wh0rd.org - tt-rss.git/commitdiff
update_rss_feed: limit maximum length of tsvector data because of pgsql limitations
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 10 Jul 2018 11:08:55 +0000 (14:08 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 10 Jul 2018 11:08:55 +0000 (14:08 +0300)
classes/rssutils.php

index dd6d1dd31379818f6364161f0be61df66cb862da..3315d9f8856821de7aebd6c2abb522b35d56813f 100755 (executable)
@@ -1008,7 +1008,7 @@ class RSSUtils {
 
                                        if (DB_TYPE == "pgsql") {
                                                $params[":ts_lang"] = $feed_language;
-                                               $params[":ts_content"] = mb_substr(strip_tags($entry_title . " " . $entry_content), 0, 1000000);
+                                               $params[":ts_content"] = mb_substr(strip_tags($entry_title . " " . $entry_content), 0, 900000);
                                        }
 
                                        $sth->execute($params);