From 632c6741726cfcdffc7c7ca53a199f5cc7dd5aa5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 19 Jun 2006 10:11:52 +0100 Subject: [PATCH] return if article is updated in rss.getFeedHeadlines --- xml-rpc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xml-rpc.php b/xml-rpc.php index 20f7c7da..b02400dc 100644 --- a/xml-rpc.php +++ b/xml-rpc.php @@ -276,11 +276,15 @@ while ($line = db_fetch_assoc($result)) { + $is_updated = ($line["last_read"] == "" && ($line["unread"] != "t" && $line["unread"] != "1")); + $headline_items = array( "id" => new xmlrpcval($line["id"], "int"), "unread" => new xmlrpcval(sql_bool_to_bool($line["unread"]), "boolean"), "marked" => new xmlrpcval(sql_bool_to_bool($line["marked"]), "boolean"), "updated" => new xmlrpcval(strtotime($line["updated"]), "int"), + "is_updated" => new xmlrpcval($is_updated, "boolean"), + "title" => new xmlrpcval($line["title"]) ); -- 2.39.5