fixed problem with profile posts

This commit is contained in:
jeena 2013-09-09 10:05:02 +02:00
parent 06a3ff9540
commit 4d8bf41e3c
3 changed files with 4 additions and 7 deletions

View file

@ -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) {

View file

@ -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";

View file

@ -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;