I have solved it. use "static:app.load" hook , and use the method's first arguments ,we can setting routes to do what we want to do
Best posts made by holly
Latest posts made by holly
the rewards code bug
when I new a rewards ,and set Amount of times reward is claimable to 1 when user post count >=10 ,this rule can be trigger twice ,When you post several times, including twice as long to meet more than 10 Posts.
I view the code about rewards ,and found the issue in src/rewards/index.js 93 line
return (userRewards[reward.id] > reward.claimable) ? false : true;
if you change it to
return (userRewards[reward.id] >= reward.claimable) ? false : true;
the bug will disappear
I have mentioned it at github issues
how to generate the tpl file in the directory of public/templates
I find the directory(public/templates) is not in git repo ,but when I setup finished ,it appeared.
I need to modify the homepage a little.
I have seen the code ,but I still don't know where generate it . someone can tell me ?