Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Fixed profile and posts display issues
Browse files Browse the repository at this point in the history
Issue #2
Since preloading templates, profile failed to load and the infinite loop
protect stopped posts from reloading. Both issues now fixed...
  • Loading branch information
toniwidmo committed Dec 23, 2017
1 parent c69669a commit c7ee108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/steem/steem.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ var steem_post_template,steem_post;

// Steem posts variables
var steem_posts_template, steem_posts, steem_posts_displayed, steem_username, steem_tags, steem_posts_count;
steem_posts_displayed = new Array();

/* A special content module for pulling content from steem blockchain */
function steem_menuitem(args) {
Expand Down Expand Up @@ -39,6 +38,7 @@ console.log('args JSON parsed: '+args);
case "posts":
// First clear contentArea, because we might need to make multiple calls to refill it.
$('#contentArea').html('');
steem_posts_displayed = new Array();
getSteemPosts(args.user,args.tag,args.count,'2100-01-01T00:00:00','');
console.log("Get posts for: user(s): "+args.user+", tag(s): "+args.tag+", count: "+args.count);
break;
Expand Down Expand Up @@ -210,7 +210,7 @@ template = template.replace('{steem_profile_location}',metadata.profile.location
}
function getSteemProfile(username) {
//
steem.api.getAccounts([username], function(err, profile){getSteemProfileTemplate(err, profile)});
steem.api.getAccounts([username], function(err, profile){displaySteemProfile(err, profile)});
}

//Load the showdown library (for parsing markdown)
Expand Down

0 comments on commit c7ee108

Please sign in to comment.