You are viewing a single comment's thread from:

RE: Write a Steemit Web App: Part 10 - Retrieving Comments with getContentReplies()

in #steemdev7 years ago

Some interesting things I noted in the arrays:

  • 'Nix Dawn-of-Time last_payout timestamp, assume due to null value?:

"last_payout": "1970-01-01T00:00:00",

  • 'Nix DoT-minus-1 max_cashout_time timestamp:

"max_cashout_time": "1969-12-31T23:59:59",

  • Weighting & payout of 5 decimal places 10000:

"reward_weight": 10000, "percent_steem_dollars": 10000,

  • Max payout would be nice :D

"max_accepted_payout": "1000000.000 SBD",

  • Comment body is truncated @ carriage return (as abstract until loaded)?:

"body": "I wish I had the time to experiment...",

depth and children is interesting, I would've expected depth to be determined by parent/child ancestry & the required rendering intention applied accordingly. Wonder if it's used/intended for anything further? Just seems like it could be used to override an objects natural position, like 'pull-left' to depth=0...

Thanks once again for sharing the field notes of your sojourns in SteemitAPI, I really enjoy them.

Sort:  

Yes - I assume that the Unix epoch dates are simply due to null values in this case.

And the 10000 numbers represent two decimal places (i.e., 100.00).

That comment body was truncated by me in the interest of brevity (and I added the "...").

depth is determined by parent/child ancestry. The first level comments of a post are depth 1 (i.e., consider the post to be depth 0). The replies of those comments are depth 2, and their replies are depth 3, etc.

When rendering, I probably would use nested <ul> so that I wouldn't necessarily have to worry about the depth, though. I only mention it in case each node was rendered individually and you had to figure out the indent level.

Thanks for reading!

Thanks for clarifying, & congrats on the @steemitboard steemitboard total payout received award total payout received award!

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 60192.33
ETH 2321.67
USDT 1.00
SBD 2.50