My latest contributions to the Hive Condenser and Wallet apps.

​## Context
I have been involved (voluntarily) with the development of the Condenser & Wallet apps (that are powering https://hive.blog and https://wallet.hive.blog) for quite a while now. There are other great frontends to Hive out there such as https://peakd.com and https://ecency.com but I have always been more or less faithful with the Condenser.

This is a regular report on my new contributions. Some of the new work below might still be in test and not yet deployed.

Notes: some features or bug fixes might not yet be available as they need to pass review and test by the team.


Spoiler markup support related fixes

A couple of weeks ago we released a support for spoiler markup allowing Hivers to create posts with initially hidden spoilers. Few minor bugs were raised in relation to this release so here are the fixes:

Remarkable v2.0.1 does not support the linkify option anymore

Upon deployment, the backend was outputting a warning related to the change of activating the linkify option of Remarkable (updated from v1 to v2). This was a very minor since we only use that option to disable linkify because the Condenser is using its own linkify code.
MR: https://gitlab.syncad.com/hive/condenser/-/merge_requests/351

Refactoring the embedded player injection code

@tarazkp noticed that you could not embedded Youtube videos inside a spoiler block. After investigation, I found out that it's due to the way embedded player codes are being transformed and injected in the rendered HTML. The current implementation is changing the structure of the HTML and hence separating the spoiler from the embedded HTML. This logic has now been refactored to allow embedding videos inside spoiler blocks.
MR: https://gitlab.syncad.com/hive/condenser/-/merge_requests/352

JSON URL not working anymore

Hive posts and user profiles can be accessed with .json in order to access the JSON data of those entities. For example here is the JSON for my profile (might not work until the fix is deployed):
@quochuy.json (test on staging)

And here is the JSON for a post:
@quochuy/35gjjb-my-latest-contributions-to-the-hive-condenser-and-wallet-apps.json (test on staging)

However, this feature has somehow been broken. This was due to a KOA update. To fix this I had to rewrite some of the custom KOA middlewares were were using in the Condenser.

Remarkable Spoiler Plugin

I forgot to mention this in the previous post but in order to implement the Spoiler support on the Condenser, I developed a simple plugin for Remarkable and published it on NPM. It is now used on Hive Blog and also on @Peakd. See the link below on how to install and use it in your own project that uses Remarkable to render Markdown markups to HTML.

https://www.npmjs.com/package/@quochuync/remarkable-spoiler


Vote for my witness
Support @quochuy Witness.jpg
On Hive, Witnesses are playing the important role of providing a performant and safe network for all of us. You have the power to choose 30 trusty witnesses to package transactions and sign the blocks that will go in the Hive blockchain. Vote for me via HiveSigner to support my work for the community.

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center