mirror of
https://github.com/ihabunek/toot
synced 2025-01-25 00:39:45 +01:00
Fix search sending type=None if not specified
This commit is contained in:
parent
540851713c
commit
45962b27c3
@ -452,11 +452,13 @@ def search(app, user, query, resolve=False, type=None):
|
||||
Perform a search.
|
||||
https://docs.joinmastodon.org/methods/search/#v2
|
||||
"""
|
||||
return http.get(app, user, "/api/v2/search", {
|
||||
params = drop_empty_values({
|
||||
"q": query,
|
||||
"resolve": resolve,
|
||||
"resolve": str_bool(resolve),
|
||||
"type": type
|
||||
}).json()
|
||||
})
|
||||
|
||||
return http.get(app, user, "/api/v2/search", params).json()
|
||||
|
||||
|
||||
def follow(app, user, account):
|
||||
|
Loading…
Reference in New Issue
Block a user