X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=include%2Frssfuncs.php;h=4cd0f688876d676bf509ee00c5928c6cc3641974;hb=e44280a0bd650239ef1d931d1d41cb0379df4eb9;hp=cec44cd8eb54115b5266bd3f132da6e32430a85d;hpb=76fc1f83e17ed462a13547e62535f577d136250b;p=tt-rss.git diff --git a/include/rssfuncs.php b/include/rssfuncs.php index cec44cd8..4cd0f688 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -481,7 +481,7 @@ if (!$registered_title || $registered_title == "[Unknown]") { - $feed_title = db_escape_string($rss->get_title()); + $feed_title = db_escape_string(mb_substr($rss->get_title(), 0, 199)); if ($feed_title) { _debug("registering title: $feed_title", $debug_enabled); @@ -694,7 +694,7 @@ _debug("article hash: $entry_current_hash [stored=$entry_stored_hash]", $debug_enabled); - if ($entry_current_hash == $entry_stored_hash) { + if ($entry_current_hash == $entry_stored_hash && !isset($_REQUEST["force_rehash"])) { _debug("stored article seems up to date [IID: $base_entry_id], updating timestamp only", $debug_enabled); // we keep encountering the entry in feeds, so we need to @@ -707,7 +707,11 @@ db_query("UPDATE ttrss_entries SET date_updated = NOW() WHERE id = '$base_entry_id'"); - continue; + // if we allow duplicate posts, we have to continue to + // create the user entries for this feed + if (!get_pref("ALLOW_DUPLICATE_POSTS", $owner_uid, false)) { + continue; + } } _debug("hash differs, applying plugin filters:", $debug_enabled);