mirror of https://gitlab.com/bashrc2/epicyon
Show header only
parent
62b990fe5a
commit
56881e3404
|
@ -47,13 +47,13 @@ setPreferredUsername(username,domain,'badger')
|
||||||
setBio(username,domain,'Some personal info')
|
setBio(username,domain,'Some personal info')
|
||||||
#createPublicPost(username, domain, https, "G'day world!", False, True, None, None, 'Not suitable for Vogons')
|
#createPublicPost(username, domain, https, "G'day world!", False, True, None, None, 'Not suitable for Vogons')
|
||||||
#archivePosts(username,domain,4)
|
#archivePosts(username,domain,4)
|
||||||
outboxJson=createOutbox(username,domain,https,2,True,None)
|
#outboxJson=createOutbox(username,domain,https,2,True,None)
|
||||||
pprint(outboxJson)
|
#pprint(outboxJson)
|
||||||
|
|
||||||
#runDaemon(domain,port,federationList,useTor)
|
runDaemon(domain,port,federationList,useTor)
|
||||||
|
|
||||||
#testHttpsig()
|
#testHttpsig()
|
||||||
sys.exit()
|
#sys.exit()
|
||||||
|
|
||||||
#pprint(person)
|
#pprint(person)
|
||||||
#print('\n')
|
#print('\n')
|
||||||
|
|
|
@ -166,8 +166,11 @@ def personOutboxJson(domain: str,path: str,https: bool,noOfItems: int) -> []:
|
||||||
if not '/outbox' in path:
|
if not '/outbox' in path:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
# Only show the header by default
|
||||||
|
headerOnly=True
|
||||||
|
|
||||||
# handle page numbers
|
# handle page numbers
|
||||||
pageNumber=None
|
pageNumber=None
|
||||||
if '?page=' in path:
|
if '?page=' in path:
|
||||||
pageNumber=path.split('?page=')[1]
|
pageNumber=path.split('?page=')[1]
|
||||||
if pageNumber=='true':
|
if pageNumber=='true':
|
||||||
|
@ -178,6 +181,7 @@ def personOutboxJson(domain: str,path: str,https: bool,noOfItems: int) -> []:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
path=path.split('?page=')[0]
|
path=path.split('?page=')[0]
|
||||||
|
headerOnly=False
|
||||||
|
|
||||||
if not path.endswith('/outbox'):
|
if not path.endswith('/outbox'):
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue