projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request 'Update elixir versions' (#512) from norm/akkoma:update-elixir...
[akkoma]
/
lib
/
pleroma
/
web
/
api_spec
/
schemas
/
poll.ex
diff --git
a/lib/pleroma/web/api_spec/schemas/poll.ex
b/lib/pleroma/web/api_spec/schemas/poll.ex
index c62096db0e302af6b21a2fa8d0f0282cc0b40335..943ad8bd466ea98a66b9842f065838be99caf5e8 100644
(file)
--- a/
lib/pleroma/web/api_spec/schemas/poll.ex
+++ b/
lib/pleroma/web/api_spec/schemas/poll.ex
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
@@
-28,8
+28,11
@@
defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
},
votes_count: %Schema{
type: :integer,
},
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,
},
voted: %Schema{
type: :boolean,
@@
-61,7
+64,7
@@
defmodule Pleroma.Web.ApiSpec.Schemas.Poll do
expired: true,
multiple: false,
votes_count: 10,
expired: true,
multiple: false,
votes_count: 10,
- voters_count:
nil
,
+ voters_count:
10
,
voted: true,
own_votes: [
1
voted: true,
own_votes: [
1