diff options
author | Andrew Dolgov <[email protected]> | 2016-01-07 22:01:35 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2016-01-07 22:01:35 +0300 |
commit | 5bdcb8fd7834964d69550a788d9c666c14964f21 (patch) | |
tree | bc9292f72ae7b3fca78c596391a323d0147fbb81 /include | |
parent | 4f186b1f10e748eacd636bfd8ff5bb6b585ddaaa (diff) |
remove option ALLOW_DUPLICATE_POSTS as confusing/useless
Diffstat (limited to 'include')
-rwxr-xr-x | include/rssfuncs.php | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/include/rssfuncs.php b/include/rssfuncs.php index cd82481b6..ad956cd2a 100755 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -750,25 +750,7 @@ db_query("UPDATE ttrss_entries SET date_updated = NOW() WHERE id = '$base_entry_id'"); - // if we allow duplicate posts, we have to continue to - // create the user entries for this feed (if needed) - if (get_pref("ALLOW_DUPLICATE_POSTS", $owner_uid, false)) { - - $query = "SELECT int_id FROM ttrss_user_entries WHERE - ref_id = '$base_entry_id' AND owner_uid = '$owner_uid' - AND (feed_id = '$feed' OR feed_id IS NULL) LIMIT 1"; - - $result = db_query($query); - - if (db_num_rows($result) == 0) { - _debug("allow duplicate posts is enabled and user record is not found, continuing."); - } else { - continue; - } - - } else { - continue; - } + continue; } _debug("hash differs, applying plugin filters:", $debug_enabled); @@ -944,16 +926,8 @@ // check for user post link to main table - // do we allow duplicate posts with same GUID in different feeds? - if (get_pref("ALLOW_DUPLICATE_POSTS", $owner_uid, false)) { - $dupcheck_qpart = "AND (feed_id = '$feed' OR feed_id IS NULL)"; - } else { - $dupcheck_qpart = ""; - } - $query = "SELECT ref_id, int_id FROM ttrss_user_entries WHERE - ref_id = '$ref_id' AND owner_uid = '$owner_uid' - $dupcheck_qpart"; + ref_id = '$ref_id' AND owner_uid = '$owner_uid'"; // if ($_REQUEST["xdebug"]) print "$query\n"; |