forked from indymedia/epicyon
Getting actor for single user instance
parent
ad16224628
commit
515305f005
9
posts.py
9
posts.py
|
@ -165,12 +165,15 @@ def getPersonBox(baseDir: str,session,wfRequest: {},personCache: {}, \
|
|||
if not wfRequest.get('errors'):
|
||||
personUrl = getUserUrl(wfRequest)
|
||||
else:
|
||||
personUrl = httpPrefix+'://'+domain+'/users/'+nickname
|
||||
if not personUrl:
|
||||
if nickname=='dev':
|
||||
# try single user instance
|
||||
print('getPersonBox: Trying single user instance with ld+json')
|
||||
personUrl = httpPrefix+'://'+domain
|
||||
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
#return None,None,None,None,None,None,None,None
|
||||
else:
|
||||
personUrl = httpPrefix+'://'+domain+'/users/'+nickname
|
||||
if not personUrl:
|
||||
return None,None,None,None,None,None,None,None
|
||||
personJson = getPersonFromCache(baseDir,personUrl,personCache)
|
||||
if not personJson:
|
||||
if '/channel/' in personUrl:
|
||||
|
|
Loading…
Reference in New Issue