From a23b7d9af8db424e197a2fe2f7b879deaa27241d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 11 Sep 2021 15:17:37 +0100 Subject: [PATCH] Announces may not have the same actor --- webapp_profile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp_profile.py b/webapp_profile.py index f95c5a6bb..d7537c1d4 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -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