diff --git a/apps/ssb.json b/apps/ssb.json index 3b4adc9e..277fa6c8 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&dQu+yQ4/be0vcgIZSMKtesQCbH8lVhHcZAEv9+dNknY=.sha256" + "previous": "&wzVxQjLzBbwClkI3GB2t85i3pJxRcE1RnCXzC/TbfAw=.sha256" } diff --git a/apps/ssb/tf-app.js b/apps/ssb/tf-app.js index 04746bea..83b88fcd 100644 --- a/apps/ssb/tf-app.js +++ b/apps/ssb/tf-app.js @@ -437,10 +437,11 @@ class TfElement extends LitElement { (await tfrpc.rpc.databaseGet('unread')) ?? '{}' ); this.following = Object.keys(following); + let about_start_time = new Date(); users = await this.fetch_about(following, users); console.log( 'about took', - (new Date() - start_time) / 1000.0, + (new Date() - about_start_time) / 1000.0, 'seconds for', Object.keys(users).length, 'users' diff --git a/apps/ssb/tf-tab-news-feed.js b/apps/ssb/tf-tab-news-feed.js index 5576299f..0a43762e 100644 --- a/apps/ssb/tf-tab-news-feed.js +++ b/apps/ssb/tf-tab-news-feed.js @@ -268,13 +268,13 @@ class TfTabNewsFeedElement extends LitElement { let messages = []; try { messages = await this.fetch_messages( - this.time_range[1] - 24 * 60 * 60 * 1000, + this.time_range[0], end_time ); messages = await this.decrypt(messages); this.update_time_range_from_messages( messages.filter( - (x) => x.timestamp >= this.time_range[1] && x.timestamp < end_time + (x) => x.timestamp >= this.time_range[0] && x.timestamp < end_time ) ); } finally {