Skip to content

Commit

Permalink
Update property description for pollopts
Browse files Browse the repository at this point in the history
The parent property on pollopts was superseded by poll in May 2016.

Thanks to Jacek Ciolek for reporting.
  • Loading branch information
Scott Bell committed Apr 21, 2017
1 parent 5d77768 commit 1688262
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Expand Up @@ -35,7 +35,8 @@ by | The username of the item's author.
time | Creation date of the item, in [Unix Time](http:https://en.wikipedia.org/wiki/Unix_time).
text | The comment, story or poll text. HTML.
dead | `true` if the item is dead.
parent | The item's parent. For comments, either another comment or the relevant story. For pollopts, the relevant poll.
parent | The comment's parent: either another comment or the relevant story.
poll | The pollopt's associated poll.
kids | The ids of the item's comments, in ranked display order.
url | The URL of the story.
score | The story's score, or the votes for a pollopt.
Expand Down Expand Up @@ -128,7 +129,7 @@ and one of its parts: https://hacker-news.firebaseio.com/v0/item/160705.json?pri
{
"by" : "pg",
"id" : 160705,
"parent" : 160704,
"poll" : 160704,
"score" : 335,
"text" : "Yes, ban them; I'm tired of seeing Valleywag stories on News.YC.",
"time" : 1207886576,
Expand Down

0 comments on commit 1688262

Please sign in to comment.