Busy now supports 12 tags for SCOT tokens / est account value fix / multiple links bug fix

Words
306
Reading
2 min
Listen
Play
7y

Repository

https://github.com/busyorg/busy

1 new feature and 2 bug fixes

New Feature: 12 maximum tags support for SCOT tokens

PR: https://github.com/busyorg/busy/pull/2212

These days, there are so many Steem Engine SCOT tokens with Nitrous.

Nitrous already supports 10 tags, but Busy supported only up to 5 tags.
Now, Busy supports up to 12 (dozen sounded right to me :) tags.

Busy now supports more than 5 tags

but up to 12 tags

In fact, Steem API doesn't have a hard limit on this, but some API call may not work properly. (For instance, utopian posting queueing system doesn't work if you use more than 5 tags based on my experience. Of course, if you used more than 5 and then modified it with up to 5 tags, the post is registered.)

Code

  • Previously, the number 5 was hard-coded, which wasn't good.
  • So I defined the constant MAX_TAG for a potential change in the future
  • Intl message is also added. (translation will be done later, which can be done mechanically).

Bug Fix: Est. Account Value

PR: https://github.com/busyorg/busy/pull/2215

There was a month-old bug that doesn't show estimated account value due to SBD price fetching error. https://github.com/busyorg/busy/issues/2207

It was due to deprecated API use, so I made the following changes.

  • For SBD price, first try cryptosPriceHistory and then feed rate.
    cryptosPriceHistory doesn't support SBD prices for a long time, but just in case it supports again, I implemented the above logic.

  • Show Estimated Account Value (Previously it can't be shown due to no SBD price)

Code

Bug Fix: Multiple links support in one sentence

PR: https://github.com/busyorg/busy/pull/2198

Before

Previously there was a rendering bug that only the first link was rendered as a hyperlink, as below

e.g., https://busy.org/@blockchainstudio/steem-keychain-should-hide-private-keys-by-default

After

Now all links are shown properly.

Code

  • The problem was due to the misuse of linksRe instead of linksAny.

GitHub Account

https://github.com/economicstudio

Busy now supports 12 tags for SCOT tokens / est account value fix /... | Ecency