summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2021-05-04 09:57:14 +0000
committerGitHub <noreply@github.com>2021-05-04 11:57:14 +0200
commit5253df946b8eb45903ed6ea7e724ec6b5000b2cf (patch)
tree84ac8d415555d052b61be985ab8f7ebc0d5b93d4 /searx/webapp.py
parentb646050f6e47eed52a2b1564427ae199a0c92341 (diff)
[mod] option to enable or disable "proxy" button next to each result (#54)
* [mod] option to enable or disable "proxy" button next to each result Closes: https://github.com/searxng/searxng/issues/51 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de> Co-authored-by: Alexandre Flament <alex@al-f.net>
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index b8bc60ec5..dd1557c99 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -444,6 +444,7 @@ def render(template_name, override_theme=None, **kwargs):
kwargs['image_proxify'] = image_proxify
kwargs['proxify'] = proxify if settings.get('result_proxy', {}).get('url') else None
+ kwargs['proxify_results'] = settings.get('result_proxy', {}).get('proxify_results', True)
kwargs['opensearch_url'] = url_for('opensearch') + '?' \
+ urlencode({'method': kwargs['method'], 'autocomplete': kwargs['autocomplete']})