We are using SteemJ for the SteemitWorldMap project and we recently found out that some comments are failing on user contaning a dot in the account name.
This led to some investigation in the SteemJ source code.
After some digging I found that issue comes from the generated permlink for the reply. Indeed, it is using the author account name to build the permlink therefore but this character is invalid in permlinks.
Looking at the condenser implementation I saw that is was removing the dot is such cases.
I implemented the same behavior in this PR. This should be the only character to remove since account names can only contain alphanumerical characters (which are valid) plus dot (which is not).
On the practical level, the fix is quite easy, it just remove the dot, if any, from the author name in the function that builds the permlink.
This has been tested successfully and the patched version is now powering SteemitWorldMap. The Pull Request was kindly merged by @dez1337 who is maintaining the SteemJ project.
Proof of work
- PR link should already be in the post but here it is, just in case.
- Here is a comment made using the patched version. (view it on steemd)
Thank you for your interest!
Posted on Utopian.io - Rewarding Open Source Contributors