From c772025148549eb4c37e01346a64b99e770e2818 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 12 Oct 2021 19:13:33 +0800 Subject: [PATCH] filter search results by sender --- src/App.svelte | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index f98a6b9..d41d98a 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -98,8 +98,11 @@ return } error = '' - console.log(`searching ${query} for group ${group}, older than ${more}`) - const q = `g=${group}&q=${encodeURIComponent(query)}` + console.log(`searching ${query} for group ${group}, older than ${more}, from ${sender}`) + let q = `g=${group}&q=${encodeURIComponent(query)}` + if(sender) { + q += `&sender=${sender}` + } let url if(!more) { location.hash = `#${q}` @@ -164,7 +167,7 @@ on:input={() => error = ''} on:keydown={e => {if(e.key == 'Enter'){do_search()}}} /> - +