You are viewing a single comment's thread from:
RE: Introducing SteemComments.js - Add Steem Comments To Any Website or Blog
Hey Amos, It was substantially more work than I expected it would be.
Best place to start is with the getState()
API call (note it takes a full path 'photofeed/sambillingham/20180120t093601718z-post'
where as many other calls just take the permlink).
Get state gives you all the replies to a post at any given level as appose to getDiscussionsByCreated()
which only gives the first level of replies. With get State you can check the depth
property and then re-order everything by using the parent_permlink
or parent_id
into a thread based structure.
Thanks for taking a look at the project dude 👊