Rewild Your Web
18
fork

Configure Feed

Select the types of activity you want to include in your feed.

search: don't run the fend provider with urls

Signed-off-by: webbeef <me@webbeef.org>

webbeef f9f98022 b031e438

+6
+6
ui/shared/search/providers/fend.js
··· 18 18 19 19 // Returns a Promise that resolves to a result set. 20 20 async query(text) { 21 + // Don't run when the query looks like a URL. 22 + try { 23 + let _url = new URL(text); 24 + return []; 25 + } catch (e) {} 26 + 21 27 await this.init(); 22 28 23 29 let result = await fend_wasm.evaluateFendWithTimeout(text, 500);