steemit / steem-js

Steem.js the official JavaScript library for Steem blockchain
https://www.npmjs.com/package/steem
MIT License
472 stars 225 forks source link

Unlock post editing [custom_json] operation #130

Open creatorguy opened 7 years ago

creatorguy commented 7 years ago

Expected behavior

We were promised that with HF17 and after, authors would be able to edit posts in perpetuity, rather than only for a month.

Actual behavior

What actually happens is that now editing is not even possible after seven days.

How to reproduce

Just try to edit any article more than seven days old.

P.S. This is extremely frustrating for content creators. Any help on this issue would be deeply appreciated. If this is not the appropriate forum to raise this issue, would whoever may be knowledgeable, please forward this request to the appropriate venue... THANK YOU IN ADVANCE.

roadscape commented 7 years ago

This feature was released 17 days ago, all that remains to be done is for witnesses to upgrade to this version.

From https://github.com/steemit/steem/releases/tag/v0.18.3:

The witness plugin now has a custom operation called enable_content_editing_operation that allows a user to signal they want to edit their content. By consensus, content is editable indefinitely, but is soft forked to be frozen after payout. This operation requires an active key and is designed to prevent vandalism if a posting key is compromised. #1017

The enable_content_editing_operation is a custom_json operation, which steem-js already supports. It's possible to add a helper method to make it easier.

Here's the specs: https://github.com/steemit/steem/blob/master/libraries/plugins/witness/witness_evaluators.cpp

custom_json needs id=witness, and the format of the json would look something like this: ['enable_content_editing', {'account':'youracct','relock_time':unix_timestamp}] where unix_timestamp is the point in time at which editing becomes locked again.

The custom_json op needs to be signed with an active key! This is to prevent stolen posting keys from being used to deface old content.

creatorguy commented 7 years ago
Hello!

Thank you very much for the information! This is great news! :D

-creator
sijo0703 commented 6 years ago

Is the enable_content_editing_operation availble in steemit web.? I still cannot edit my posts in steemit.

creatorguy commented 6 years ago

Hi, sijo0703,

AFAIK, the "standard" Steemit U/I has not (and may never?) enable this.

Furthermore, I don't know offhand whether or not the witnesses are up to date on this, although it should be fairly easy to check what version they are running.

I have not as yet succeeded in testing this personally. I just need to make some time to experiment with it. IMHO, the ability to edit old posts is something that I feel is critical to any serious author.

Thanks for asking.