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