Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover image not updating on the wallet page #3744

Closed
Jolly-Pirate opened this issue Feb 29, 2020 · 3 comments
Closed

Cover image not updating on the wallet page #3744

Jolly-Pirate opened this issue Feb 29, 2020 · 3 comments
Labels

Comments

@Jolly-Pirate
Copy link
Contributor

Jolly-Pirate commented Feb 29, 2020

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 ety001 added the bug label Apr 26, 2020
@ety001
Copy link
Member

ety001 commented Jul 9, 2020

steemit/steem#3274

@ety001
Copy link
Member

ety001 commented Jul 9, 2020

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
Copy link
Member

ety001 commented Jul 9, 2020

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.

@ety001 ety001 closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants