From ed2bdb8d813bdfb7be51d23c40bf6033efea1fc4 Mon Sep 17 00:00:00 2001 From: jkrperson Date: Thu, 1 Jun 2023 21:34:22 +0800 Subject: [PATCH] fix(poll): Add return statement for poll_vote function --- mastodon/polls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/polls.py b/mastodon/polls.py index d13cfe4..feb766a 100644 --- a/mastodon/polls.py +++ b/mastodon/polls.py @@ -44,7 +44,7 @@ class Mastodon(Internals): 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): """