Adding mentions support to Steem.rocks

Yesterday, @favcau suggested we should log mentions and show the users on the activity feed. Even though I have that in my mind for a while, Mention*is not actually an operation like posting comments, voting etc. in the blockchain, so it will be different to implement.

Adding the mentions support

After a quick workaround, I have implemented a virtual operation in the steemrocks codebase.

I have used this regex pattern to catch usernames:


If anyone has a better pattern to catch usernames, I would be pleased to hear it.

Testing



Let me know if you have any issues with the mentions.

Note: steemrocks has a node replay on progress. Database crashed today due to huge activity size. It will be recovered soon.

H2
H3
H4
3 columns
2 columns
1 column
7 Comments