diff --git a/WebKit/scripts/controller/NewPost.js b/WebKit/scripts/controller/NewPost.js index 6638b45..078848b 100644 --- a/WebKit/scripts/controller/NewPost.js +++ b/WebKit/scripts/controller/NewPost.js @@ -295,14 +295,11 @@ function(APICalls, HostApp) { data.mentions = mentions; - debug(data.mentions) - // Make tent flavored markdown mentions for (var i = 0; i < this.mentions.length; i++) { var mention = this.mentions[i]; data.content.text = this.replaceAll(data.content.text, mention.name, "^[" + mention.name + "](" + i + ")") } - debug(data.content.text) APICalls.post(HostApp.serverUrl("new_post"), JSON.stringify(data), { content_type: data.type, diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js index 4912ed7..840eed9 100644 --- a/WebKit/scripts/controller/Profile.js +++ b/WebKit/scripts/controller/Profile.js @@ -57,8 +57,6 @@ function(HostApp, Core, APICalls, URI, Timeline) { entity = HostApp.stringForKey("entity"); } - debug(entity) - this.clear(); this.entity = entity; this.following = null; @@ -385,7 +383,6 @@ function(HostApp, Core, APICalls, URI, Timeline) { APICalls.get(url, { callback: function(resp) { var json = JSON.parse(resp.responseText); - debug(json) if (json.posts.length > 0) { _this.relationships.followed_by_you = true; } else { @@ -504,6 +501,9 @@ function(HostApp, Core, APICalls, URI, Timeline) { type: "https://tent.io/types/subscription/v0#https://tent.io/types/status/v0" }; + debug(data) + debug(url) + APICalls.post(url, JSON.stringify(data), { content_type: data.type, callback: function(resp) { diff --git a/WebKit/scripts/controller/Timeline.js b/WebKit/scripts/controller/Timeline.js index 4c0cf8a..43db2d3 100644 --- a/WebKit/scripts/controller/Timeline.js +++ b/WebKit/scripts/controller/Timeline.js @@ -146,10 +146,9 @@ function(Core, APICalls, HostApp, URI) { if (!this.reload_blocked) { this.reload_blocked = true; - debug(url) - APICalls.get(url, { callback: function(resp) { + debug(resp.responseText) those.reload_blocked = false;