better handling of /cc on Linux

This commit is contained in:
jeena 2013-02-26 01:35:23 +01:00
parent 595d751449
commit 3238b06c27
3 changed files with 7 additions and 5 deletions

View file

@ -453,6 +453,7 @@ function(HostApp, Core, Paths, URI) {
this.setFollowingButton(true);
var url = URI(Paths.mkApiRootPath("/followings"));
var data = JSON.stringify({"entity": this.entity });
debug(data)
Paths.getURL(url.toString(), "POST", function(resp) {
if (resp.status >= 200 && resp.status < 300) {
_this.following_id = JSON.parse(resp.responseText).id