mirror of https://gitlab.com/bashrc2/epicyon
Check object type
parent
b214c0d088
commit
ac38dbbb36
|
@ -3131,20 +3131,21 @@ def htmlIndividualPost(recentPostsCache: {},maxRecentPosts: int, \
|
||||||
messageId=postJsonObject['id'].replace('/activity','')
|
messageId=postJsonObject['id'].replace('/activity','')
|
||||||
|
|
||||||
# show the previous posts
|
# show the previous posts
|
||||||
while postJsonObject['object'].get('inReplyTo'):
|
if isinstance(postJsonObject['object'], dict):
|
||||||
postFilename=locatePost(baseDir,nickname,domain,postJsonObject['object']['inReplyTo'])
|
while postJsonObject['object'].get('inReplyTo'):
|
||||||
if not postFilename:
|
postFilename=locatePost(baseDir,nickname,domain,postJsonObject['object']['inReplyTo'])
|
||||||
break
|
if not postFilename:
|
||||||
postJsonObject=loadJson(postFilename)
|
break
|
||||||
if postJsonObject:
|
postJsonObject=loadJson(postFilename)
|
||||||
postStr= \
|
if postJsonObject:
|
||||||
individualPostAsHtml(recentPostsCache,maxRecentPosts, \
|
postStr= \
|
||||||
iconsDir,translate,None, \
|
individualPostAsHtml(recentPostsCache,maxRecentPosts, \
|
||||||
baseDir,session,wfRequest,personCache, \
|
iconsDir,translate,None, \
|
||||||
nickname,domain,port,postJsonObject, \
|
baseDir,session,wfRequest,personCache, \
|
||||||
None,True,False, \
|
nickname,domain,port,postJsonObject, \
|
||||||
httpPrefix,projectVersion,'inbox', \
|
None,True,False, \
|
||||||
False,authorized,False,False,False)+postStr
|
httpPrefix,projectVersion,'inbox', \
|
||||||
|
False,authorized,False,False,False)+postStr
|
||||||
|
|
||||||
# show the following posts
|
# show the following posts
|
||||||
postFilename=locatePost(baseDir,nickname,domain,messageId)
|
postFilename=locatePost(baseDir,nickname,domain,messageId)
|
||||||
|
|
Loading…
Reference in New Issue