fix intermittent bug where claim metadata was cleared out

This commit is contained in:
Lex Berezhny 2019-08-30 09:10:14 -04:00
parent c1c9c2c578
commit aec0bd5d11

View file

@ -172,7 +172,7 @@ class JSONResponseEncoder(JSONEncoder):
'normalized_name': txo.normalized_name,
'claim_id': txo.claim_id,
'permanent_url': txo.permanent_url,
'meta': self.encode_claim_meta(txo.meta)
'meta': self.encode_claim_meta(txo.meta.copy())
})
if 'short_url' in output['meta']:
output['short_url'] = output['meta'].pop('short_url')