Unverified Commit 0b63d25a authored by roadscape's avatar roadscape Committed by GitHub

Merge pull request #122 from steemit/fix-md-check

fix fallback check
parents 1f0fde03 8e5cf9c2
...@@ -47,7 +47,7 @@ export async function avatarHandler(ctx: KoaContext) { ...@@ -47,7 +47,7 @@ export async function avatarHandler(ctx: KoaContext) {
} }
// otherwise, fall back to reading from `json_metadata` // otherwise, fall back to reading from `json_metadata`
if (!metadata) { if (!metadata || !metadata.profile) {
try { try {
metadata = JSON.parse(account.json_metadata) metadata = JSON.parse(account.json_metadata)
} catch (error) { } catch (error) {
......
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