From 1688262ab6e899e94831e59102d25de0a2a425df Mon Sep 17 00:00:00 2001 From: Scott Bell Date: Fri, 21 Apr 2017 16:07:21 -0700 Subject: [PATCH] Update property description for pollopts The parent property on pollopts was superseded by poll in May 2016. Thanks to Jacek Ciolek for reporting. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7825a8a..4a7c5a8 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,8 @@ by | The username of the item's author. time | Creation date of the item, in [Unix Time](http://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. @@ -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,