summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-07-17 19:37:22 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-07-21 13:38:28 +0200
commitc9220de690f0081777cf43acb547f2b3818fd8fe (patch)
tree80907df6b25b362ec1e34e5948e783449ed0fc61
parent2a2b6c4d57958dd60cc59c80e5669d41b714c701 (diff)
downloadsearxng-c9220de690f0081777cf43acb547f2b3818fd8fe.tar.gz
searxng-c9220de690f0081777cf43acb547f2b3818fd8fe.zip
[mod] drop unused setting option brand:twitter_url
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
-rw-r--r--docs/admin/engines/settings.rst3
-rw-r--r--searx/__init__.py5
-rw-r--r--searx/settings_defaults.py1
-rw-r--r--utils/brand.env1
-rw-r--r--utils/build_env.py1
5 files changed, 0 insertions, 11 deletions
diff --git a/docs/admin/engines/settings.rst b/docs/admin/engines/settings.rst
index 1fe083a97..7335b9a2a 100644
--- a/docs/admin/engines/settings.rst
+++ b/docs/admin/engines/settings.rst
@@ -73,9 +73,6 @@ Global Settings
``wiki_url``:
Link to your wiki (or ``false``)
-``twitter_url``:
- Link to your tweets (or ``false``)
-
``server:``
-----------
diff --git a/searx/__init__.py b/searx/__init__.py
index 55f6bb464..2b6a84124 100644
--- a/searx/__init__.py
+++ b/searx/__init__.py
@@ -96,9 +96,4 @@ class _brand_namespace: # pylint: disable=invalid-name
def WIKI_URL(self):
return self.get_val('brand', 'wiki_url')
- @property
- def TWITTER_URL(self):
- return self.get_val('brand', 'twitter_url')
-
-
brand = _brand_namespace()
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py
index 05df33440..d034cb1cd 100644
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -137,7 +137,6 @@ SCHEMA = {
'docs_url': SettingsValue(str, None),
'public_instances': SettingsValue(str, None),
'wiki_url': SettingsValue(str, None),
- 'twitter_url': SettingsValue(str, None),
},
'search': {
'safe_search': SettingsValue((0,1,2), 0),
diff --git a/utils/brand.env b/utils/brand.env
index 9cc52051d..e0c670a01 100644
--- a/utils/brand.env
+++ b/utils/brand.env
@@ -6,4 +6,3 @@ export DOCS_URL='https://searxng.github.io/searxng'
export PUBLIC_INSTANCES='https://searx.space'
export CONTACT_URL=''
export WIKI_URL='https://github.com/searxng/searxng/wiki'
-export TWITTER_URL=''
diff --git a/utils/build_env.py b/utils/build_env.py
index 58d58d564..c52111e81 100644
--- a/utils/build_env.py
+++ b/utils/build_env.py
@@ -35,7 +35,6 @@ name_val = [
('PUBLIC_INSTANCES' , _env('brand.public_instances', '')),
('CONTACT_URL' , _env('general.contact_url', '')),
('WIKI_URL' , _env('brand.wiki_url', '')),
- ('TWITTER_URL' , _env('brand.twitter_url', '')),
]
brand_env = 'utils' + sep + 'brand.env'