mirror of https://gitlab.com/bashrc2/epicyon
Handle actors with no public feed
parent
9494a83263
commit
fcb2a7404f
|
@ -244,38 +244,39 @@ def htmlProfileAfterSearch(cssCache: {},
|
||||||
' </form>\n' + \
|
' </form>\n' + \
|
||||||
'</div>\n'
|
'</div>\n'
|
||||||
|
|
||||||
i = 0
|
userFeed = \
|
||||||
print('Test 5236543: ' + str(outboxUrl) + ' v' +
|
parseUserFeed(session, outboxUrl, asHeader, projectVersion,
|
||||||
str(projectVersion) + ' http:' + str(httpPrefix) + ' ' +
|
httpPrefix, domain, debug)
|
||||||
str(domain) + ' debug:' + str(debug))
|
if userFeed:
|
||||||
for item in parseUserFeed(session, outboxUrl, asHeader,
|
i = 0
|
||||||
projectVersion, httpPrefix, domain, debug):
|
for item in userFeed:
|
||||||
if not item.get('actor'):
|
if not item.get('actor'):
|
||||||
continue
|
continue
|
||||||
if item['actor'] != personUrl:
|
if item['actor'] != personUrl:
|
||||||
continue
|
continue
|
||||||
if not item.get('type'):
|
if not item.get('type'):
|
||||||
continue
|
continue
|
||||||
if item['type'] != 'Create':
|
if item['type'] != 'Create':
|
||||||
continue
|
continue
|
||||||
if not hasObjectDict(item):
|
if not hasObjectDict(item):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
profileStr += \
|
profileStr += \
|
||||||
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
|
individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
|
||||||
translate, None, baseDir,
|
translate, None, baseDir,
|
||||||
session, cachedWebfingers, personCache,
|
session, cachedWebfingers, personCache,
|
||||||
nickname, domain, port,
|
nickname, domain, port,
|
||||||
item, avatarUrl, False, False,
|
item, avatarUrl, False, False,
|
||||||
httpPrefix, projectVersion, 'inbox',
|
httpPrefix, projectVersion, 'inbox',
|
||||||
YTReplacementDomain,
|
YTReplacementDomain,
|
||||||
showPublishedDateOnly,
|
showPublishedDateOnly,
|
||||||
peertubeInstances, allowLocalNetworkAccess,
|
peertubeInstances,
|
||||||
themeName, systemLanguage,
|
allowLocalNetworkAccess,
|
||||||
False, False, False, False, False)
|
themeName, systemLanguage,
|
||||||
i += 1
|
False, False, False, False, False)
|
||||||
if i >= 20:
|
i += 1
|
||||||
break
|
if i >= 20:
|
||||||
|
break
|
||||||
|
|
||||||
instanceTitle = \
|
instanceTitle = \
|
||||||
getConfigParam(baseDir, 'instanceTitle')
|
getConfigParam(baseDir, 'instanceTitle')
|
||||||
|
|
Loading…
Reference in New Issue