]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: getLabels: return converted label ids
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 28 Jul 2013 19:37:19 +0000 (23:37 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 28 Jul 2013 19:37:19 +0000 (23:37 +0400)
classes/api.php

index c1f4aa9fafab47c345b5e2956063ad5395cd1078..e9ffc63dd10e579a5420b99e0deab34aa1c66179 100644 (file)
@@ -430,7 +430,7 @@ class API extends Handler {
                        }
 
                        array_push($rv, array(
-                               "id" => (int)$line['id'],
+                               "id" => (int)label_to_feed_id($line['id']),
                                "caption" => $line['caption'],
                                "fg_color" => $line['fg_color'],
                                "bg_color" => $line['bg_color'],