Announces may not have the same actor

main
Bob Mottram 2021-09-11 15:17:37 +01:00
parent 5895b3d50b
commit a23b7d9af8
1 changed files with 3 additions and 1 deletions

View File

@ -261,11 +261,13 @@ def htmlProfileAfterSearch(cssCache: {},
if userFeed:
i = 0
for item in userFeed:
isAnnouncedFeedItem = False
if isCreateInsideAnnounce(item):
isAnnouncedFeedItem = True
item = item['object']
if not item.get('actor'):
continue
if item['actor'] != personUrl:
if not isAnnouncedFeedItem and item['actor'] != personUrl:
continue
if not item.get('type'):
continue