aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-11-04 10:20:09 +0100
committerlain <lain@soykaf.club>2020-11-04 10:20:09 +0100
commit92d252f364ed421f2afcdd135507ced3554eb3f0 (patch)
treeab1eb21357155894be8f26246071581a6c1d9af8
parentf09bb814a96c71f24fcf6e403a25e90be9cc684e (diff)
downloadpleroma-92d252f364ed421f2afcdd135507ced3554eb3f0.tar.gz
Poll Schema: Update and fix.
-rw-r--r--lib/pleroma/web/api_spec/schemas/poll.ex9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/pleroma/web/api_spec/schemas/poll.ex b/lib/pleroma/web/api_spec/schemas/poll.ex
index c62096db0..0dfa60b97 100644
--- a/lib/pleroma/web/api_spec/schemas/poll.ex
+++ b/lib/pleroma/web/api_spec/schemas/poll.ex
@@ -28,8 +28,11 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
},
votes_count: %Schema{
type: :integer,
- nullable: true,
- description: "How many votes have been received. Number, or null if `multiple` is false."
+ description: "How many votes have been received. Number."
+ },
+ voters_count: %Schema{
+ type: :integer,
+ description: "How many unique accounts have voted. Number."
},
voted: %Schema{
type: :boolean,
@@ -61,7 +64,7 @@ defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
expired: true,
multiple: false,
votes_count: 10,
- voters_count: nil,
+ voters_count: 10,
voted: true,
own_votes: [
1