If actor is unexpected then check cc field when showing timeline for searched handle

main
Bob Mottram 2021-10-27 21:08:21 +01:00
parent 0ec2c45b50
commit 7cd0d969b5
1 changed files with 7 additions and 1 deletions

View File

@ -311,7 +311,13 @@ def htmlProfileAfterSearch(cssCache: {},
if not item.get('actor'):
continue
if not isAnnouncedFeedItem and item['actor'] != personUrl:
continue
# if the actor is different then check the cc field
if not item.get('cc'):
continue
if not isinstance(item['cc'], list):
continue
if personUrl not in item['cc']:
continue
profileStr += \
individualPostAsHtml(signingPrivateKeyPem,