Show header only

master
Bob Mottram 2019-06-29 18:12:26 +01:00
parent 62b990fe5a
commit 56881e3404
2 changed files with 9 additions and 5 deletions

View File

@ -47,13 +47,13 @@ setPreferredUsername(username,domain,'badger')
setBio(username,domain,'Some personal info')
#createPublicPost(username, domain, https, "G'day world!", False, True, None, None, 'Not suitable for Vogons')
#archivePosts(username,domain,4)
outboxJson=createOutbox(username,domain,https,2,True,None)
pprint(outboxJson)
#outboxJson=createOutbox(username,domain,https,2,True,None)
#pprint(outboxJson)
#runDaemon(domain,port,federationList,useTor)
runDaemon(domain,port,federationList,useTor)
#testHttpsig()
sys.exit()
#sys.exit()
#pprint(person)
#print('\n')

View File

@ -166,6 +166,9 @@ def personOutboxJson(domain: str,path: str,https: bool,noOfItems: int) -> []:
if not '/outbox' in path:
return None
# Only show the header by default
headerOnly=True
# handle page numbers
pageNumber=None
if '?page=' in path:
@ -178,6 +181,7 @@ def personOutboxJson(domain: str,path: str,https: bool,noOfItems: int) -> []:
except:
pass
path=path.split('?page=')[0]
headerOnly=False
if not path.endswith('/outbox'):
return None