merge-requests/30/head
Bob Mottram 2021-11-19 11:11:26 +00:00
parent 97496587d4
commit 2a10a1e078
1 changed files with 6 additions and 0 deletions

View File

@ -281,15 +281,18 @@ def htmlProfileAfterSearch(cssCache: {},
if userFeed:
i = 0
for item in userFeed:
print('htmlProfileAfterSearch 1 ' + str(item))
isAnnouncedFeedItem = False
if isCreateInsideAnnounce(item):
isAnnouncedFeedItem = True
item = item['object']
print('htmlProfileAfterSearch 2')
if not item.get('type'):
continue
if item['type'] == 'Create':
if not hasObjectDict(item):
continue
print('htmlProfileAfterSearch 3')
if item['type'] != 'Create' and item['type'] != 'Announce':
if item['type'] != 'Note' and item['type'] != 'Page':
continue
@ -312,9 +315,11 @@ def htmlProfileAfterSearch(cssCache: {},
item = newItem
if not item.get('actor'):
continue
print('htmlProfileAfterSearch 4')
if not isAnnouncedFeedItem:
if item['actor'] != personUrl and item['type'] != 'Page':
continue
print('htmlProfileAfterSearch 5')
profileStr += \
individualPostAsHtml(signingPrivateKeyPem,
@ -332,6 +337,7 @@ def htmlProfileAfterSearch(cssCache: {},
themeName, systemLanguage, maxLikeCount,
False, False, False, False, False, False,
CWlists, listsEnabled)
print('htmlProfileAfterSearch 6 ' + str(profileStr))
i += 1
if i >= 8:
break