mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-09-26 21:37:06 +02:00
Update search_users.py
This commit is contained in:
@@ -72,9 +72,6 @@ class SearchUser(DVMTaskInterface):
|
|||||||
# default values
|
# default values
|
||||||
search = ""
|
search = ""
|
||||||
max_results = 100
|
max_results = 100
|
||||||
relay = "wss://relay.nostr.band"
|
|
||||||
if self.options["relay"]:
|
|
||||||
relay = self.options["relay"]
|
|
||||||
|
|
||||||
for tag in event.tags():
|
for tag in event.tags():
|
||||||
if tag.as_vec()[0] == 'i':
|
if tag.as_vec()[0] == 'i':
|
||||||
@@ -89,7 +86,6 @@ class SearchUser(DVMTaskInterface):
|
|||||||
options = {
|
options = {
|
||||||
"search": search,
|
"search": search,
|
||||||
"max_results": max_results,
|
"max_results": max_results,
|
||||||
"relay": relay
|
|
||||||
}
|
}
|
||||||
request_form['options'] = json.dumps(options)
|
request_form['options'] = json.dumps(options)
|
||||||
return request_form
|
return request_form
|
||||||
|
Reference in New Issue
Block a user