]> git.wh0rd.org - tt-rss.git/commitdiff
return if article is updated in rss.getFeedHeadlines
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 19 Jun 2006 09:11:52 +0000 (10:11 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 19 Jun 2006 09:11:52 +0000 (10:11 +0100)
xml-rpc.php

index 20f7c7da3cab659c2644ec2201ed65fff75b2b68..b02400dc29d88fcafbea65abf6f743fd16942828 100644 (file)
 
                        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"])
                                        );