From 6b2226ff3704fa3e942a480c0736d148102568bc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 17 Feb 2021 22:14:41 +0000 Subject: [PATCH] Check actor when showing profile after search --- webapp_profile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp_profile.py b/webapp_profile.py index 0d2fe362d..f8c89a551 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -279,6 +279,10 @@ def htmlProfileAfterSearch(cssCache: {}, i = 0 for item in parseUserFeed(session, outboxUrl, asHeader, projectVersion, httpPrefix, domain): + if not item.get('actor'): + continue + if item['actor'] != personUrl: + continue if not item.get('type'): continue if item['type'] != 'Create' and item['type'] != 'Announce':