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
This commit is contained in:
commit
733b257d31
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class API extends Handler {
|
class API extends Handler {
|
||||||
|
|
||||||
const API_LEVEL = 13;
|
const API_LEVEL = 14;
|
||||||
|
|
||||||
const STATUS_OK = 0;
|
const STATUS_OK = 0;
|
||||||
const STATUS_ERR = 1;
|
const STATUS_ERR = 1;
|
||||||
|
|
|
@ -1772,9 +1772,9 @@
|
||||||
set_basic_feed_info($feed_id);
|
set_basic_feed_info($feed_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
return array("code" => 1);
|
return array("code" => 1, "feed_id" => (int) $feed_id);
|
||||||
} else {
|
} else {
|
||||||
return array("code" => 0);
|
return array("code" => 0, "feed_id" => (int) db_fetch_result($result, 0, "id"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue