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) => { ...@@ -59,7 +59,7 @@ export default connect((state, ownProps) => {
json_metadata: state.global.getIn([ json_metadata: state.global.getIn([
'accounts', 'accounts',
account, account,
'json_metadata', 'posting_json_metadata',
]), ]),
hideIfDefault, hideIfDefault,
}; };
......
...@@ -34,7 +34,7 @@ export default function extractContent(get, content) { ...@@ -34,7 +34,7 @@ export default function extractContent(get, content) {
'permlink', 'permlink',
'parent_author', 'parent_author',
'parent_permlink', 'parent_permlink',
'json_metadata', 'posting_json_metadata',
'category', 'category',
'title', 'title',
'created', 'created',
......
...@@ -18,9 +18,9 @@ export default function normalizeProfile(account) { ...@@ -18,9 +18,9 @@ export default function normalizeProfile(account) {
// Parse // Parse
let profile = {}; let profile = {};
if (account.json_metadata) { if (account.posting_json_metadata) {
try { try {
const md = JSON.parse(account.json_metadata); const md = JSON.parse(account.posting_json_metadata);
if (md.profile) { if (md.profile) {
profile = 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