https://github.com/steem-engine-exchange/nitrous/pull/51
Project Name: Nitrous
PR: https://github.com/steem-engine-exchange/nitrous/pull/51
Show beneficiary info if exists
enable_comment_beneficiaries is trueexclude_beneficiaries_accounts e.g., finex, likwidscreenshot tested on local dev server for AAA. In my opinion, utopian.pay should also be added to
exclude_beneficiaries_accountsglobally :) But utopian will end soon anyway :(
when beneficiary (e.g., finex, likwid in AAA, SCT) is in
exclude_beneficiaries_accounts, it should not be shown. also, the header 'beneficiaries' itself should not be shown.
The same posting on Busy (finex 100% is shown): https://busy.org/@blockchainstudio/scot-vp-viewer-vote-weight-multiplier-support
PR: https://github.com/steem-engine-exchange/nitrous/pull/57
MAX_TAG and APP_MAX_TAG to avoid hardcoded max num of tagsBasically, we should use OrderedSet instead of Set.
This was much difficult to find than I initially thought, and that might be the reason why this bug had existed quite long.
It is because the standard JS library Set preserves the order, and immutable library Set also preserve the order up to 8 elements! Why up to 8!
Anyway, now the problem has been resolved.
Trying to post with this order of tags on palnet.io
https://busy.org/@guest123/pob-is-dead
alphabetically ordered and palnet is inserted in a random position.
Another example.
palnet is inserted in 4th position (instead of 3rd position) which shows it's quite random.
https://busy.org/@guest123/3y2xik-test
previously tag order is tangled. https://busy.org/@guest123/j1tbe-test
fixed. You can also see duplicated tag is automatically removed, and
APP_NAMEis added to the last position if it's not added by users. https://busy.org/@guest123/tag-order-test
MAX_TAG constant and use it throughout.APP_NAME tag is added if a user didn't include. So there should be a conditional check for this, which was also missing previously. (L973-4)Set to OrderedSet is needed.