Finally Comments - Guest Posting & improvements

in #utopian-io6 years ago (edited)

v-08.jpg

Finally Comments V0.8.x

Repository

https://github.com/code-with-sam/finallycomments

New Features

This update being Guest commenting and the needed infrastructure changes to make it work. The majority of the update was around PR15 with a few extra updates added in additional PRs.

On previous versions of Finally, click ‘Reply’ before having signed in would show a notification saying ‘Please Sign in’, now the user is shown the usual comment box but has the option to ‘Post as Guest’ or Sign in.

guestPost

Guest posting UI

The process for adding Guest comments was a little more involved than I initially expected. Finally uses the STEEM blockchain as it’s data layer, pull information directly from the blockchain. Guest comments cause an issue because the exact purpose is to not need an account on the Blockchain.

Guest comments are stored separately in a database but still need to be attached in the comments thread. Guest comments also cannot be voted/earn rewards. I had previously not anticipated that when a STEEM authenticated user replies to a Guest, this can also not(at-least not in the traditional way) be stored on the blockchain. These different scenarios created three districted types of comments. STEEM Comments, Guest Comments and STEEM REPLY TO GUEST (these have STEEM User information but still can’t be voted).

STEEM comments - stored on the blockhcain and remain unchanged.
Guest Comments & STEEM REPLY TO GUEST - needed there own data models, routes, AJAX response and modified templates.

thread

Thread that includes a guest comment

User interface for Guest comments is kept as minimal as possible to provided a seamless comment system.

There is potential to store guest comments on the blockchain. Finally comments could broadcast ‘custom_json’ operations for each guest comment. @finallycomments or new account e.g @finallycomments-guest? could post on behalf of the guest. Both have limitations when Finally needs to scale but potentially worth thinking about.

I realised with this The next update needs to be Flagging and or moderation! I’ll work to add this in the next update to give authors more control over what is seen on FinallyComments embed.

Bug Fixes & Improvements

Finally was initially called steemcomments.js and worked by using hardcoded steemconnect signing links. Some of the namespaces and decisions from that have been hanging around. I’ve started to cut some code and refract in PR18 but it will require further work to bring it up to standard.

PR19 fixed a small sign-in but caused by the guest comment UI. The button was added dynamically and events needed to be attached correctly.

Ideas and contributions

Last week I post a roadmap for finally. If you’re interested in the development please take a look at that.

Feedback is always welcome, please let me know if you have thoughts on the Guest Comments feature.

Proof of Work Done

https://github.com/sambillingham

Sort:  

Any progress on this @sambillingham ? We need disqus for steem

Been taking a break from posting/open source to focus on freelance. Unfortunately not enough support from the community. Hope to get back to working on this when I can.

I somehow like the idea of @finallycomments-guest commenting on behalf of the guest author by mentioning their name.

This may save you a few lines of code, some database space, and reduce latency of calling 2 data points, also can earn you some SBD and SP if anyone votes on those comments.

Yeah I thought about that Idea a bunch. My main reservations are

A) Once posted to the blockchain it can't be removed, I'd be anxious a user might post nefarious content and it would be immutably linked to a handle/user I own.

B) You can only post every 20 seconds if Finally needs to scale it could be an issue with multiple people trying to post. Not an issue now but probably could be easily.

You're right though it saves a bunch of code and extra complexity. Still might switch to that in future, maybe there are other options i've not thought of yet too.

Yes, you are absolutely right. B can be bypassed using 4-5 accounts but A could be a real issue.

Another hack can be a placeholder comment by your handle(s) and adding json_metadata to that comment. This way original guest comment won't show on condensers but you can parse and show them on author's website.

This ^ and maybe let the owner of the blog auto-hide new comments to review them.

Also, the next fork is supposed to allow indefinite editing, so that could maybe help this sorta problem in the future :/

Yes agree, I realised that after working on this that flagging/hiding is even more important now. Perhaps even the ability to disable guest comments.

Had no heard about indefinite editing, that's kind of controversial.

Here's a link to one of the several issues on GitHub about it: https://github.com/steemit/steem/issues/1714

That's an interesting idea to use the metadata instead of the body 👊

Hey @sambillingham

We're already looking forward to your next contribution!

Contributing on Utopian

Learn how to contribute on our website or by watching this tutorial on Youtube.

Utopian Witness!

Vote for Utopian Witness! We are made of developers, system administrators, entrepreneurs, artists, content creators, thinkers. We embrace every nationality, mindset and belief.

Want to chat? Join us on Discord https://discord.gg/h52nFrV

⚡️⚡️Utopian Lives

this great project, because steemit as an inclusive platform which audiences can only interaction if they as steemit member.

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.034
BTC 66540.93
ETH 3186.50
USDT 1.00
SBD 4.11