Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
use 'search', since 'search_v1' can be unavailable - fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed Sep 22, 2019
1 parent 348589a commit c213007
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.4
0.6.5
2 changes: 1 addition & 1 deletion twootfeed/mastodon/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down
2 changes: 1 addition & 1 deletion twootfeed/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': [],
Expand Down

0 comments on commit c213007

Please sign in to comment.