summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-08-29 06:59:43 +0300
committerAndrew Dolgov <[email protected]>2016-08-29 06:59:43 +0300
commit733b257d31909624e1e8d28b863b6323b2108dba (patch)
tree609d17b4369542d53953181c7363daf1a1f39adb /include/functions.php
parent557d86fe42e38a43b023b78af782dc509e4581f7 (diff)
parent401eb0f69497030d322487bf9c595ad60b9281d3 (diff)
Merge branch 'add_feed_id_to_subscribeToFeed_response' into 'master'
Add feed id to subscribe to feed response As described on the forum, this proposed change is to make the subscribeToFeed API response include the feed_id of the new or existing feed. https://tt-rss.org/forum/viewtopic.php?f=8&t=3893 Thank you. John See merge request !35
Diffstat (limited to 'include/functions.php')
-rwxr-xr-xinclude/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 3902ac45a..3dea5677a 100755
--- a/include/functions.php
+++ b/include/functions.php
@@ -1772,9 +1772,9 @@
set_basic_feed_info($feed_id);
}
- return array("code" => 1);
+ return array("code" => 1, "feed_id" => (int) $feed_id);
} else {
- return array("code" => 0);
+ return array("code" => 0, "feed_id" => (int) db_fetch_result($result, 0, "id"));
}
}