Browse Source

update_rss_feed: limit maximum length of tsvector data because of pgsql limitations

Andrew Dolgov 5 years ago
parent
commit
6e6c3a878d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/rssutils.php

+ 1 - 1
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);