diff --git a/webinterface.py b/webinterface.py index fea3abe5e..0dde60521 100644 --- a/webinterface.py +++ b/webinterface.py @@ -861,21 +861,34 @@ def htmlProfilePosts(baseDir: str,httpPrefix: str, \ These should only be public posts """ profileStr='' - outboxFeed= \ - personBoxJson(baseDir,domain, \ - port,'/users/'+nickname+'/outbox?page=1', \ - httpPrefix, \ - 4, 'outbox', \ - authorized, \ - ocapAlways) + maxItems=4 profileStr+='' - for item in outboxFeed['orderedItems']: - if item['type']=='Create' or item['type']=='Announce': - profileStr+= \ - individualPostAsHtml(baseDir,session,wfRequest,personCache, \ - nickname,domain,port,item,None,True,False, \ - httpPrefix,projectVersion, \ - False,False,False,True) + ctr=0 + currPage=1 + while ctr=maxItems: + break + currPage+=1 return profileStr def htmlProfileFollowing(baseDir: str,httpPrefix: str, \