Getting rid of default searxng params. Making it optional.

This commit is contained in:
q
2026-06-03 20:35:42 -04:00
parent c2245d1c28
commit ae21c167b3
+1 -1
View File
@@ -228,7 +228,7 @@ Searxng.prototype.handleMessage = function(event, room) {
const name = toSearch.trim();
toSearch = encodeURIComponent(toSearch);
const searchURL = this.searxngInstance + "/search?category_images=1&pageno=1&time_range=&format=json"+(this.searxngParameters.length() > 0 ? "&"+this.searxngParameters : "")+"&safesearch="+(messagePieces[0] == unsafeImageSearchCmd ? "0" : "1")+"&q=" + toSearch;
const searchURL = this.searxngInstance + "/search?category_images=1&pageno=1&time_range=&format=json"+(this.searxngParameters.length > 0 ? "&"+this.searxngParameters : "")+"&safesearch="+(messagePieces[0] == unsafeImageSearchCmd ? "0" : "1")+"&q=" + toSearch;
this.matrixClient.sendTyping(room.roomId, true, 3000);
const matrixClient = this.matrixClient;
const uploadMatrixClient = this.uploadMatrixClient;