af_psql_trgm: fix min_title_length not being used while processing articles

This commit is contained in:
Andrew Dolgov 2016-01-17 11:32:10 +03:00
parent c352248651
commit b1cefbc506

View file

@ -263,10 +263,9 @@ class Af_Psql_Trgm extends Plugin {
$similarity = (float) $this->host->get($this, "similarity"); $similarity = (float) $this->host->get($this, "similarity");
if ($similarity < 0.01) return $article; 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; if (mb_strlen($article["title"]) < $min_title_length) return $article;
$owner_uid = $article["owner_uid"]; $owner_uid = $article["owner_uid"];
$entry_guid = $article["guid_hashed"]; $entry_guid = $article["guid_hashed"];
$title_escaped = db_escape_string($article["title"]); $title_escaped = db_escape_string($article["title"]);