mirror of https://gitlab.com/bashrc2/epicyon
Single user instance when getting actor
parent
5dc1f3db0d
commit
49b0a2de45
|
@ -907,8 +907,9 @@ if args.actor:
|
|||
if nickname==domain:
|
||||
personUrl=personUrl.replace('/users/','/actor/').replace('/channel/','/actor/').replace('/profile/','/actor/')
|
||||
if not personUrl:
|
||||
print('Failed to get actor url')
|
||||
sys.exit()
|
||||
# try single user instance
|
||||
personUrl=httpPrefix+'://'+domain
|
||||
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
if '/channel/' in personUrl:
|
||||
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
personJson = getJson(session,personUrl,asHeader,None,__version__,httpPrefix,None)
|
||||
|
|
5
posts.py
5
posts.py
|
@ -167,7 +167,10 @@ def getPersonBox(baseDir: str,session,wfRequest: {},personCache: {}, \
|
|||
else:
|
||||
personUrl = httpPrefix+'://'+domain+'/users/'+nickname
|
||||
if not personUrl:
|
||||
return None,None,None,None,None,None,None,None
|
||||
# try single user instance
|
||||
personUrl = httpPrefix+'://'+domain
|
||||
asHeader = {'Accept': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"'}
|
||||
#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