Handle actors with no public feed

merge-requests/30/head
Bob Mottram 2021-08-02 21:17:55 +01:00
parent 9494a83263
commit fcb2a7404f
1 changed files with 32 additions and 31 deletions

View File

@ -244,12 +244,12 @@ def htmlProfileAfterSearch(cssCache: {},
' </form>\n' + \ ' </form>\n' + \
'</div>\n' '</div>\n'
userFeed = \
parseUserFeed(session, outboxUrl, asHeader, projectVersion,
httpPrefix, domain, debug)
if userFeed:
i = 0 i = 0
print('Test 5236543: ' + str(outboxUrl) + ' v' + for item in userFeed:
str(projectVersion) + ' http:' + str(httpPrefix) + ' ' +
str(domain) + ' debug:' + str(debug))
for item in parseUserFeed(session, outboxUrl, asHeader,
projectVersion, httpPrefix, domain, debug):
if not item.get('actor'): if not item.get('actor'):
continue continue
if item['actor'] != personUrl: if item['actor'] != personUrl:
@ -270,7 +270,8 @@ def htmlProfileAfterSearch(cssCache: {},
httpPrefix, projectVersion, 'inbox', httpPrefix, projectVersion, 'inbox',
YTReplacementDomain, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
peertubeInstances, allowLocalNetworkAccess, peertubeInstances,
allowLocalNetworkAccess,
themeName, systemLanguage, themeName, systemLanguage,
False, False, False, False, False) False, False, False, False, False)
i += 1 i += 1