diff --git a/functions.php b/functions.php index 7943adef2..ec55467b9 100644 --- a/functions.php +++ b/functions.php @@ -6358,8 +6358,8 @@ WHERE id = '$id'"); } - db_query($link, "UPDATE ttrss_user_entries SET feed_id = NULL - WHERE feed_id = '$id' AND + db_query($link, "UPDATE ttrss_user_entries SET feed_id = NULL, + orig_feed_id = '$id' WHERE feed_id = '$id' AND marked = true AND owner_uid = $owner_uid"); /* remove the feed */