Check actor when showing profile after search

main
Bob Mottram 2021-02-17 22:14:41 +00:00
parent d65764b548
commit 6b2226ff37
1 changed files with 4 additions and 0 deletions

View File

@ -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':