diff --git a/activities/models/post_types.py b/activities/models/post_types.py index b4e58f6..8db2dc8 100644 --- a/activities/models/post_types.py +++ b/activities/models/post_types.py @@ -58,7 +58,7 @@ class QuestionData(BasePostDataType): "expired": False, "multiple": multiple, "votes_count": 0, - "voters_count": self.voter_count if multiple else None, + "voters_count": self.voter_count, "voted": False, "own_votes": [], "options": [], diff --git a/tests/api/test_statuses.py b/tests/api/test_statuses.py index 4add2af..01ce58b 100644 --- a/tests/api/test_statuses.py +++ b/tests/api/test_statuses.py @@ -131,7 +131,7 @@ def test_question_format(api_client, remote_identity): "expired": True, "multiple": False, "votes_count": 30, - "voters_count": None, + "voters_count": 30, "voted": False, "own_votes": [], "options": [