fix filtering error upon abandon

This commit is contained in:
Jack Robison 2021-09-21 12:55:14 -04:00 committed by Victor Shyba
parent de9159d83c
commit 8b42475d59

View file

@ -491,10 +491,11 @@ class LevelDB:
reposts = self.get_reposts_in_channel(reposter_channel_hash) reposts = self.get_reposts_in_channel(reposter_channel_hash)
for repost in reposts: for repost in reposts:
txo = self.get_claim_txo(repost) txo = self.get_claim_txo(repost)
if txo.normalized_name.startswith('@'): if txo:
channels[repost] = reposter_channel_hash if txo.normalized_name.startswith('@'):
else: channels[repost] = reposter_channel_hash
streams[repost] = reposter_channel_hash else:
streams[repost] = reposter_channel_hash
return streams, channels return streams, channels
def get_reposts_in_channel(self, channel_hash): def get_reposts_in_channel(self, channel_hash):