mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
97496587d4
commit
2a10a1e078
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue