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
1 changed files with 1 additions and 1 deletions

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)