steemit / condenser

The greatest application front-end to the Steem Blockchain.
https://steemit.com
505 stars 429 forks source link

Cover image not updating on the wallet page #3744

Closed Jolly-Pirate closed 4 years ago

Jolly-Pirate commented 4 years ago

A user changed his cover image but it's not updating properly on the wallet page. It's showing an older cover he uploaded.

https://steemit.com/@goldstreet https://steemitwallet.com/@goldstreet/transfers

ety001 commented 4 years ago

https://github.com/steemit/steem/issues/3274

ety001 commented 4 years ago

How to set the json_metadata field empty.

You can go to https://steemyy.com/steemjs/ and use steemjs sdk to set your json_metadata field empty.

const username = 'your_account_name';
const active_key = 'your_active_key';

const tx = {
    operations: [
        [
            'account_update',
            {
                memo_key: "your_memo_public_key",
                json_metadata: "",
                account: username,
            }
        ]
    ],
    extensions: []
};

steem.broadcast.send(tx, {active: active_key}, (e,r) => {
    console.log(e, r);
});
ety001 commented 4 years ago

Because of the bad design of posting_json_metadata field, currently the logic to display the profile is confusion.

There are two operations to update account profile now, account_update and account_update2. Due to the account_update needs active key to sign, that means editing json_metadata needs active key.

After condenser abused active key to login, users cannot edit their profiles. So someone made a new design account_update2 that allows users to edit profiles by posting key. I don't think this design account_update2 is good. That makes confusion.

The current logic of displaying profile is that read posting_json_metadata first, if failed, read json_metadata.