Skip to content

Commit

Permalink
Merge pull request #343 from jkrperson/master
Browse files Browse the repository at this point in the history
fix(poll): Add return statement for poll_vote function.
  • Loading branch information
halcy committed Jun 1, 2023
2 parents dbbce45 + ed2bdb8 commit 48b2982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mastodon/polls.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def poll_vote(self, id, choices):
choices = [choices]
params = self.__generate_params(locals(), ['id'])

self.__api_request('POST', f'/api/v1/polls/{id}/votes', params)
return self.__api_request('POST', f'/api/v1/polls/{id}/votes', params)

def make_poll(self, options, expires_in, multiple=False, hide_totals=False):
"""
Expand Down

0 comments on commit 48b2982

Please sign in to comment.