Commit 60ed84ac authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Switch to using the new posting_json_metadata for fetching account info

parent 105c3dca
......@@ -59,7 +59,7 @@ export default connect((state, ownProps) => {
json_metadata: state.global.getIn([
'accounts',
account,
'json_metadata',
'posting_json_metadata',
]),
hideIfDefault,
};
......
......@@ -34,7 +34,7 @@ export default function extractContent(get, content) {
'permlink',
'parent_author',
'parent_permlink',
'json_metadata',
'posting_json_metadata',
'category',
'title',
'created',
......
......@@ -18,9 +18,9 @@ export default function normalizeProfile(account) {
// Parse
let profile = {};
if (account.json_metadata) {
if (account.posting_json_metadata) {
try {
const md = JSON.parse(account.json_metadata);
const md = JSON.parse(account.posting_json_metadata);
if (md.profile) {
profile = md.profile;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment