Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var startAuthor;
- var startPermlink;
- function getDiscussions(start_author, start_permlink)
- {
- start_author = typeof start_author !== 'undefined' ? start_author : '';
- start_permlink = typeof start_permlink !== 'undefined' ? start_permlink : '';
- if(start_permlink && start_author)
- {
- var params =
- {
- 'limit': 100,
- 'truncate_body': 240,
- 'start_author': start_author,
- 'start_permlink': start_permlink
- }
- }
- else
- {
- var params =
- {
- 'limit': 100,
- 'truncate_body': 240
- }
- }
- golos.api.getDiscussionsByCreated(params, function(err, data){
- if(data.length > 0)
- {
- data.forEach(function (operation){
- AddBlockX(operation);
- });
- }
- });
- }
- function AddBlockX(operation)
- {
- ...
- startAuthor = operation.author;
- startPermlink = operation.permlink;
- ...
- }
Add Comment
Please, Sign In to add comment