fix has_no_source for reposts

This commit is contained in:
Jack Robison 2021-07-05 13:23:59 -04:00
parent 8bcfff05d7
commit e5c22fa665
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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,