1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-23 07:27:12 +01:00

Quote hahtags before including them in an URL

Fixes searching by hashtag which include the #.

issue #134
This commit is contained in:
Ivan Habunek 2020-01-21 09:04:03 +01:00
parent 60efc13338
commit 6d18fd55a1
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -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)