Skip to content
Snippets Groups Projects
Unverified Commit 0b63d25a authored by roadscape's avatar roadscape Committed by GitHub
Browse files

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

fix fallback check
parents 1f0fde03 8e5cf9c2
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ export async function avatarHandler(ctx: KoaContext) {
}
// otherwise, fall back to reading from `json_metadata`
if (!metadata) {
if (!metadata || !metadata.profile) {
try {
metadata = JSON.parse(account.json_metadata)
} catch (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment