Revert to original

merge-requests/30/head
Bob Mottram 2021-10-27 21:26:34 +01:00
parent 6716ebfe78
commit fd9ae03a1a
1 changed files with 1 additions and 12 deletions

View File

@ -311,18 +311,7 @@ def htmlProfileAfterSearch(cssCache: {},
if not item.get('actor'):
continue
if not isAnnouncedFeedItem and item['actor'] != personUrl:
# 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
# switch actor with cc
item['actor'] = item['cc']
item['object']['actor'] = item['cc']
item['cc'] = []
item['object']['cc'] = []
continue
profileStr += \
individualPostAsHtml(signingPrivateKeyPem,