mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-22 04:25:55 -04:00
Quote hahtags before including them in an URL
Fixes searching by hashtag which include the #. issue #134
This commit is contained in:
parent
60efc13338
commit
6d18fd55a1
@ -193,7 +193,7 @@ def public_timeline_generator(instance, local=False, limit=20):
|
||||
|
||||
|
||||
def tag_timeline_generator(instance, hashtag, local=False, limit=20):
|
||||
path = '/api/v1/timelines/tag/{}'.format(hashtag)
|
||||
path = '/api/v1/timelines/tag/{}'.format(quote(hashtag))
|
||||
params = {'local': str_bool(local), 'limit': limit}
|
||||
return _anon_timeline_generator(instance, path, params)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user