kopia lustrzana https://github.com/ihabunek/toot
Quote hahtags before including them in an URL
Fixes searching by hashtag which include the #. issue #134pull/132/head
rodzic
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):
|
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}
|
params = {'local': str_bool(local), 'limit': limit}
|
||||||
return _anon_timeline_generator(instance, path, params)
|
return _anon_timeline_generator(instance, path, params)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue