From: Andrew Dolgov Date: Mon, 19 Jun 2006 09:11:52 +0000 (+0100) Subject: return if article is updated in rss.getFeedHeadlines X-Git-Tag: 1.2.1~10 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=632c6741726cfcdffc7c7ca53a199f5cc7dd5aa5;p=tt-rss.git return if article is updated in rss.getFeedHeadlines --- 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"]) );