From 6e6c3a878d561099ea5c50181a1eb4d4b4494552 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 10 Jul 2018 14:08:55 +0300 Subject: [PATCH] update_rss_feed: limit maximum length of tsvector data because of pgsql limitations --- classes/rssutils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/rssutils.php b/classes/rssutils.php index dd6d1dd3..3315d9f8 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -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); -- 2.39.5