diff options
author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-11-04 17:48:10 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2020-11-04 17:48:10 +0300 |
commit | 73e66fd31fdfe8cc483fb77df235ddef31708aeb (patch) | |
tree | 26e4d4e4f62e95c808dbe3a2a820de9b4ab9dd02 /lib/pleroma/web/api_spec/schemas/poll.ex | |
parent | 04f6b48ac1a76fe9c6c3fd573427d418bc152adf (diff) | |
parent | 9c09ea01aa8c93e02b5697e27f0a8458b624b161 (diff) | |
download | pleroma-73e66fd31fdfe8cc483fb77df235ddef31708aeb.tar.gz |
Merge remote-tracking branch 'remotes/origin/develop' into auth-improvements
Diffstat (limited to 'lib/pleroma/web/api_spec/schemas/poll.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/schemas/poll.ex | 9 |
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 |