forked from indymedia/epicyon
Variable names
parent
8defe2003f
commit
41d68a0e05
|
@ -33,12 +33,12 @@ session = createSession(useTor)
|
||||||
privateKeyPem,publicKeyPem,person,wfEndpoint=createPerson(username,domain,https,True)
|
privateKeyPem,publicKeyPem,person,wfEndpoint=createPerson(username,domain,https,True)
|
||||||
setPreferredUsername(username,domain,'badger')
|
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')
|
||||||
|
|
||||||
#runDaemon(domain,port,federationList,useTor)
|
#runDaemon(domain,port,federationList,useTor)
|
||||||
|
|
||||||
#testHttpsig()
|
#testHttpsig()
|
||||||
sys.exit()
|
#sys.exit()
|
||||||
|
|
||||||
#pprint(person)
|
#pprint(person)
|
||||||
#print('\n')
|
#print('\n')
|
||||||
|
|
4
posts.py
4
posts.py
|
@ -45,12 +45,12 @@ def parseUserFeed(session,feedUrl,asHeader) -> None:
|
||||||
pprint(feedJson)
|
pprint(feedJson)
|
||||||
|
|
||||||
if 'orderedItems' in feedJson:
|
if 'orderedItems' in feedJson:
|
||||||
for item in feed['orderedItems']:
|
for item in feedJson['orderedItems']:
|
||||||
yield item
|
yield item
|
||||||
|
|
||||||
nextUrl = None
|
nextUrl = None
|
||||||
if 'first' in feedJson:
|
if 'first' in feedJson:
|
||||||
nextUrl = feed['first']
|
nextUrl = feedJson['first']
|
||||||
elif 'next' in feedJson:
|
elif 'next' in feedJson:
|
||||||
nextUrl = feedJson['next']
|
nextUrl = feedJson['next']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue