]> git.wh0rd.org Git - tt-rss.git/commitdiff
Add feed_id to subscribeToFeed response when the code is 1 or 0.
authorJohn Brayton <jbrayton@goldenhillsoftware.com>
Sat, 27 Aug 2016 14:29:25 +0000 (10:29 -0400)
committerJohn Brayton <jbrayton@goldenhillsoftware.com>
Sat, 27 Aug 2016 14:29:25 +0000 (10:29 -0400)
Set the API_LEVEL to 14.

classes/api.php
include/functions.php

index 35c5d5f38e1b6ed734a92c5d6dfb5809ef26eaa9..da164aca1480ac1838f2fae8dea4a0da211a0c0c 100644 (file)
@@ -2,7 +2,7 @@
 
 class API extends Handler {
 
-       const API_LEVEL  = 13;
+       const API_LEVEL  = 14;
 
        const STATUS_OK  = 0;
        const STATUS_ERR = 1;
index 3902ac45a347aa2aa606a54811371b3bfc8fd6dc..68f6f592bdd6afd349dc82d231eb603f786185ac 100755 (executable)
                                set_basic_feed_info($feed_id);
                        }
 
-                       return array("code" => 1);
+                       return array("code" => 1, "feed_id" => $feed_id);
                } else {
-                       return array("code" => 0);
+                       return array("code" => 0, "feed_id" => db_fetch_result($result, 0, "id"));
                }
        }