From 4d8bf41e3ca491239296583e6428ca94907115de Mon Sep 17 00:00:00 2001 From: jeena Date: Mon, 9 Sep 2013 10:05:02 +0200 Subject: [PATCH] fixed problem with profile posts --- WebKit/scripts/controller/Profile.js | 5 +---- WebKit/scripts/controller/Sidebar.js | 4 ++-- WebKit/scripts/controller/Timeline.js | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/WebKit/scripts/controller/Profile.js b/WebKit/scripts/controller/Profile.js index 22acb6a..7f922ba 100644 --- a/WebKit/scripts/controller/Profile.js +++ b/WebKit/scripts/controller/Profile.js @@ -450,7 +450,7 @@ function(HostApp, Core, APICalls, URI, Timeline) { Profile.prototype.getStatuses = function() { - + this.since_time = null; Timeline.prototype.getNewData.call(this, {entities: this.entity}); } @@ -502,9 +502,6 @@ 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/Sidebar.js b/WebKit/scripts/controller/Sidebar.js index 845946c..2089908 100644 --- a/WebKit/scripts/controller/Sidebar.js +++ b/WebKit/scripts/controller/Sidebar.js @@ -20,14 +20,14 @@ function(HostApp, APICalls) { this.menu.mentions = this.createItem("Mentions", function() { _this.onMentions(); return false; }, "img/sidebar/mentions.png", "img/sidebar/mentions_active.png"); this.menu.conversation = this.createItem("Conversation", function() { _this.onConversation(); return false; }, "img/sidebar/conversation.png", "img/sidebar/conversation_active.png"); this.menu.entityProfile = this.createItem("Profile", function() { _this.onEntityProfile(); return false; }, "img/sidebar/profile.png", "img/sidebar/profile_active.png"); - this.menu.search = this.createItem("Search", function() { _this.onSearch(); return false; }, "img/sidebar/search.png", "img/sidebar/search_active.png") + // FIXME when skate.io is available again: this.menu.search = this.createItem("Search", function() { _this.onSearch(); return false; }, "img/sidebar/search.png", "img/sidebar/search_active.png") this.body.appendChild(this.menu.user); this.body.appendChild(this.menu.timeline); this.body.appendChild(this.menu.mentions); this.body.appendChild(this.menu.conversation); this.body.appendChild(this.menu.entityProfile); - this.body.appendChild(this.menu.search); + //this.body.appendChild(this.menu.search); this.unreadMentionsSpan = document.createElement("span"); this.unreadMentionsSpan.className = "unread_mentions"; diff --git a/WebKit/scripts/controller/Timeline.js b/WebKit/scripts/controller/Timeline.js index b10831b..7f25baf 100644 --- a/WebKit/scripts/controller/Timeline.js +++ b/WebKit/scripts/controller/Timeline.js @@ -14,7 +14,7 @@ function(Core, APICalls, HostApp, URI) { this.action = "timeline"; this.reload_blocked = false; - this.posts_limit = 25; + this.posts_limit = 50; this.max_length = 200; this.timeout = 10 * 1000; // every 10 seconds this.since_id = null;