+ $content_link = $xpath->query("(//a[contains(., '[link]')])")->item(0);
+
+ if ($content_link && $this->host->get($this, "enable_dupecheck")) {
+
+ if (DB_TYPE == "pgsql") {
+ $date_qpart = "date_entered < NOW() - INTERVAL '1 day' ";
+ } else {
+ $date_qpart = "date_entered < DATE_SUB(NOW(), INTERVAL 1 DAY) ";
+ }
+
+ $content_href = db_escape_string($content_link->getAttribute("href"));
+ $owner_uid = $article["owner_uid"];
+ $guid = db_escape_string($article["guid_hashed"]);
+
+ $result = db_query("SELECT id FROM ttrss_entries, ttrss_user_entries
+ WHERE
+ content LIKE '%$content_href%' AND
+ $date_qpart AND
+ ref_id = id AND
+ owner_uid = $owner_uid
+ AND guid != '$guid'
+ LIMIT 1");
+
+ if (db_num_rows($result) != 0) {
+ $found = true;
+ $article["force_catchup"] = true;
+ }
+ }
+
+ if (!$found) $found = $this->inline_stuff($article, $doc, $xpath);