diff --git a/VERSION b/VERSION index d2b13eb..ef5e445 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.4 +0.6.5 diff --git a/twootfeed/mastodon/routes.py b/twootfeed/mastodon/routes.py index 448d9dd..a5835c5 100644 --- a/twootfeed/mastodon/routes.py +++ b/twootfeed/mastodon/routes.py @@ -107,7 +107,7 @@ def generate_xml(api, param, query_feed=None): feed_link = (param['mastodon']['url'] + '/web/timelines/tag/' + hashtag) else: - search_result = api.search_v1(query, resolve=True) + search_result = api.search(query, resolve=True) result = search_result['statuses'][:max_items - 1] feed_title = param['mastodon']['title'] + '"' + query + '"' feed_link = (param['mastodon']['url'] + '/web/search/') diff --git a/twootfeed/tests/utils.py b/twootfeed/tests/utils.py index c38529c..df0e44e 100644 --- a/twootfeed/tests/utils.py +++ b/twootfeed/tests/utils.py @@ -98,7 +98,7 @@ def favourites(self): def fetch_next(self, toots): return self.return_result() - def search_v1(self, query, resolve=False): + def search(self, query, resolve=False): return { 'accounts': [], 'hashtags': [],