fix syncing claim to es where channel is in the same block

This commit is contained in:
Jack Robison 2021-06-06 13:03:28 -04:00 committed by Victor Shyba
parent 83107ad877
commit 306efa17cc

View file

@ -344,8 +344,8 @@ class BlockProcessor:
languages = list(set(claim_languages).union(set(reposted_languages))) languages = list(set(claim_languages).union(set(reposted_languages)))
canonical_url = f'{claim.name}#{claim.claim_hash.hex()}' canonical_url = f'{claim.name}#{claim.claim_hash.hex()}'
if metadata.is_signed: if metadata.is_signed:
channel_txo = self.db.get_claim_txo(metadata.signing_channel_hash[::-1]) channel_name = self._get_pending_claim_name(metadata.signing_channel_hash[::-1])
canonical_url = f'{channel_txo[1].name}#{metadata.signing_channel_hash[::-1].hex()}/{canonical_url}' canonical_url = f'{channel_name}#{metadata.signing_channel_hash[::-1].hex()}/{canonical_url}'
value = { value = {
'claim_hash': claim_hash[::-1], 'claim_hash': claim_hash[::-1],