Thread viewer for Bluesky

speeded up loading of timeline search

Changed files
+4 -2
+4 -2
private_search_page.js
··· 289 daysBack = 0; 290 } 291 292 - this.timelinePosts = timeline.map(x => Post.parseFeedPost(x)); 293 294 this.archiveStatus.innerText = "Timeline archive fetched: " + ((daysBack == 1) ? '1 day' : `${daysBack} days`); 295 this.searchLine.style.display = 'block'; ··· 308 return; 309 } 310 311 - let matching = this.timelinePosts.filter(x => x.lowercaseText.includes(query)); 312 313 for (let post of matching) { 314 let postView = new PostComponent(post, 'feed').buildElement();
··· 289 daysBack = 0; 290 } 291 292 + this.timelinePosts = timeline; 293 294 this.archiveStatus.innerText = "Timeline archive fetched: " + ((daysBack == 1) ? '1 day' : `${daysBack} days`); 295 this.searchLine.style.display = 'block'; ··· 308 return; 309 } 310 311 + let matching = this.timelinePosts 312 + .filter(x => x.post.record.text.toLowerCase().includes(query)) 313 + .map(x => Post.parseFeedPost(x)); 314 315 for (let post of matching) { 316 let postView = new PostComponent(post, 'feed').buildElement();