removed debug stuff
This commit is contained in:
parent
07b043c159
commit
5f55bb9b0d
3 changed files with 4 additions and 8 deletions
|
@ -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,
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Reference in a new issue