My new contributions to the Hive Condenser

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.


Bug fix: long timeout when accessing non-existing user profile

@mahdiyari has raised this issue. There was a little flaw in the user profile loading logic. Even when the user is non-existing, the Condenser was still calling the API to see how much HP the user has. I took the opportunity for also adding some checks and not fetching cross-posts unnecessarily.

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/259


Bug fix: allow dot in username for 3speak URLs

@eddiespino from @threespeak noticed that some URLs to their videos were not working with the Condenser. They have found out that it's due to the fact that the username of the video's author has a dot in it. I've updated the regex that extract metadata from the URL to allow the dot.

3Speak video

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/261


Allow table cell alignment markdown styles

@arcange has noticed that the Condenser's post editor didn't allow cell alignment using Markdown. Markdown specs allows the following syntaxes:

  • -: for right align
  • :- for left align
  • :-: for center align

The issue was the HTML Sanitiser was configured to only allow right alignment. After amending the config it's now working nicely as seen below. Once the fix is deployed, the following code should render properly:

|Period|Power Up|Powerdown|Difference|
|-|:-|:-:|-:|
|2021-09|517,927.000|172,661.000|-345,266.000|
|2021-08|3,144,598.000|3,212,814.000|68,216.000|
|2021-07|3,415,366.000|5,186,384.000|1,771,018.000|

Fix unwanted redirection

@ausbitbank pointed us to a flaw that a person with bad intentions could use to redirect someone to another website while the URL looks like a genuine Hive.Blog URL.

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/260


PeriodPower UpPowerdownDifference
2021-09517,927.000172,661.000-345,266.000
2021-083,144,598.0003,212,814.00068,216.000
2021-073,415,366.0005,186,384.0001,771,018.000

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/262


Updating the Condenser code to React v16

@sschiessl has made a big effort in doing this major work. Everything seemed to be working properly except for the Visual Editor which didn't work server side. I finally got a bit of time to look into it and managed to get it working and fixed couple bugs thanks to @mahdiyari who did some tests.

Merge request: https://gitlab.syncad.com/hive/condenser/-/merge_requests/231


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
25 Comments