Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
19
Merge Requests
19
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mastodon
docs
Commits
7ebec1eb
Commit
7ebec1eb
authored
Mar 04, 2019
by
Eugen Rochko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add poll entity
parent
1d662cd8
Pipeline
#633
passed with stages
in 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
entities.md
content/en/api/entities.md
+19
-0
No files found.
content/en/api/entities.md
View file @
7ebec1eb
...
...
@@ -237,6 +237,25 @@ Please check `app/javascript/mastodon/selectors/index.js` and `app/lib/feed_mana
-
`reblog`
-
`favourite`
## Poll
|Attribute|Type|Nullable|Added in|
|---------|-----------|:------:|:------:|
|
`id`
| String |{{
<
no
>
}}|2.8.0|
|
`expires_at`
| String (Datetime) |{{
<
yes
>
}}|2.8.0|
|
`expired`
| Boolean |{{
<
no
>
}}|2.8.0|
|
`multiple`
| Boolean |{{
<
no
>
}}|2.8.0|
|
`votes_count`
| Number |{{
<
no
>
}}|2.8.0|
|
`options`
| Array of
[
Poll option
](
#poll-option
)
|{{
<
no
>
}}|2.8.0|
|
`voted`
| Boolean |{{
<
yes
>
}}|2.8.0|
### Poll option
|Attribute|Type|Nullable|Added in|
|---------|-----------|:------:|:------:|
|
`title`
| String |{{
<
no
>
}}|2.8.0|
|
`votes_count`
| Number |{{
<
yes
>
}}|2.8.0|
## Push subscription
|Attribute|Type|Nullable|Added in|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment