From: Andrew Dolgov Date: Sun, 17 Jan 2016 08:32:10 +0000 (+0300) Subject: af_psql_trgm: fix min_title_length not being used while processing articles X-Git-Tag: 16.3~55 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b1cefbc50643ff0878fecc9ae98b8f15803a5275;p=tt-rss.git af_psql_trgm: fix min_title_length not being used while processing articles --- diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php index f93f7c02..521db4b8 100644 --- a/plugins/af_psql_trgm/init.php +++ b/plugins/af_psql_trgm/init.php @@ -263,10 +263,9 @@ class Af_Psql_Trgm extends Plugin { $similarity = (float) $this->host->get($this, "similarity"); if ($similarity < 0.01) return $article; - $min_title_length = (int) $this->host->get($this, "min_length"); + $min_title_length = (int) $this->host->get($this, "min_title_length"); if (mb_strlen($article["title"]) < $min_title_length) return $article; - $owner_uid = $article["owner_uid"]; $entry_guid = $article["guid_hashed"]; $title_escaped = db_escape_string($article["title"]);