Remove debug

merge-requests/30/head
Bob Mottram 2021-11-19 11:19:38 +00:00
parent d3d9c60970
commit c0b4d7175f
1 changed files with 0 additions and 6 deletions

View File

@ -281,18 +281,15 @@ 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
@ -315,12 +312,10 @@ 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 \ if item['actor'] != personUrl and \
item['object']['type'] != 'Page': item['object']['type'] != 'Page':
continue continue
print('htmlProfileAfterSearch 5')
profileStr += \ profileStr += \
individualPostAsHtml(signingPrivateKeyPem, individualPostAsHtml(signingPrivateKeyPem,
@ -338,7 +333,6 @@ 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