From f0d3c94aa7d3ccf8c2c0511fb4a06e68938517e6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Mar 2013 15:20:26 +0400 Subject: [PATCH] purge orphans after deleting articles --- classes/rpc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/rpc.php b/classes/rpc.php index 66bdb86b..b292f44e 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -152,6 +152,8 @@ class RPC extends Handler_Protected { $result = db_query($this->link, "DELETE FROM ttrss_user_entries WHERE ref_id IN ($ids) AND owner_uid = " . $_SESSION["uid"]); + purge_orphans($this->link); + print json_encode(array("message" => "UPDATE_COUNTERS")); } -- 2.39.5