From 55351c58429b07cda0fb4240a3e79295214ea8f6 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 5 Jul 2021 13:23:59 -0400 Subject: [PATCH] fix has_no_source for reposts --- lbry/wallet/server/leveldb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbry/wallet/server/leveldb.py b/lbry/wallet/server/leveldb.py index 4b583c163..0442a3cfd 100644 --- a/lbry/wallet/server/leveldb.py +++ b/lbry/wallet/server/leveldb.py @@ -566,7 +566,8 @@ class LevelDB: 'author': None if not metadata.is_stream else metadata.stream.author, 'description': None if not metadata.is_stream else metadata.stream.description, 'claim_type': CLAIM_TYPES[metadata.claim_type], - 'has_source': None if not metadata.is_stream else metadata.stream.has_source, + 'has_source': reposted_has_source if reposted_has_source is not None else ( + False if not metadata.is_stream else metadata.stream.has_source), 'stream_type': None if not metadata.is_stream else STREAM_TYPES[ guess_stream_type(metadata.stream.source.media_type)], 'media_type': None if not metadata.is_stream else metadata.stream.source.media_type,