Viewing a response to: @jaysermendez/re-amosbastian-re-jaysermendez-knacksteem-api-more-features-added-20180623t214635886z
Yes I know, but surely there is a better way of checking a user's role instead of duplicating all the code?
author | amosbastian |
---|---|
permlink | re-jaysermendez-re-amosbastian-re-jaysermendez-knacksteem-api-more-features-added-20180623t214810804z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-23 21:48:12 |
last_update | 2018-06-23 21:48:12 |
depth | 3 |
children | 1 |
last_payout | 2018-06-30 21:48:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 107 |
author_reputation | 174,473,586,900,705 |
root_title | "[KnackSteem API] - More features added" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,965,151 |
net_rshares | 0 |
Now that you mentioned, it can be done with a function that takes the role as the parameter :D i will do that.
author | jaysermendez |
---|---|
permlink | re-amosbastian-re-jaysermendez-re-amosbastian-re-jaysermendez-knacksteem-api-more-features-added-20180623t215201381z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-06-23 21:52:03 |
last_update | 2018-06-23 21:52:03 |
depth | 4 |
children | 0 |
last_payout | 2018-06-30 21:52:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 110 |
author_reputation | 20,790,862,502,465 |
root_title | "[KnackSteem API] - More features added" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 61,965,462 |
net_rshares | 4,763,485,683 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
amosbastian | 0 | 4,763,485,683 | 10% |