1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

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

This commit is contained in:
Andrew Dolgov
2018-07-10 14:08:55 +03:00
parent 0cd4a88dc2
commit 6e6c3a878d

View File

@@ -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);