forked from indymedia/epicyon
Instance actor url
parent
641c1fabe5
commit
3a993e5d49
|
@ -833,6 +833,7 @@ if args.actor:
|
|||
session=createSession(domain,port,useTor)
|
||||
if nickname=='inbox':
|
||||
nickname=domain
|
||||
|
||||
wfRequest=webfingerHandle(session,nickname+'@'+domain,httpPrefix,wfCache, \
|
||||
None,__version__)
|
||||
if not wfRequest:
|
||||
|
|
|
@ -149,10 +149,12 @@ def createPersonBase(baseDir: str,nickname: str,domain: str,port: int, \
|
|||
personName=nickname
|
||||
personId=httpPrefix+'://'+domain+'/users/'+nickname
|
||||
inboxStr=personId+'/inbox'
|
||||
personUrl=httpPrefix+'://'+domain+'/@'+personName
|
||||
if nickname=='inbox':
|
||||
# shared inbox
|
||||
inboxStr=httpPrefix+'://'+domain+'/actor/inbox'
|
||||
personId=httpPrefix+'://'+domain+'/actor'
|
||||
personUrl=httpPrefix+'://'+domain+'/about/more?instance_actor=true'
|
||||
personName=originalDomain
|
||||
approveFollowers=True
|
||||
personType='Application'
|
||||
|
@ -202,7 +204,7 @@ def createPersonBase(baseDir: str,nickname: str,domain: str,port: int, \
|
|||
},
|
||||
'tag': [],
|
||||
'type': personType,
|
||||
'url': httpPrefix+'://'+domain+'/@'+personName
|
||||
'url': personUrl
|
||||
}
|
||||
|
||||
if nickname=='inbox':
|
||||
|
|
|
@ -111,11 +111,13 @@ def createWebfingerEndpoint(nickname: str,domain: str,port: int, \
|
|||
personName=nickname
|
||||
personId=httpPrefix+"://"+domain+"/users/"+personName
|
||||
subjectStr="acct:"+personName+"@"+originalDomain
|
||||
profilePageHref=httpPrefix+"://"+domain+"/@"+nickname
|
||||
if nickname=='inbox' or nickname==originalDomain:
|
||||
personName='actor'
|
||||
personId=httpPrefix+"://"+domain+"/"+personName
|
||||
subjectStr="acct:"+originalDomain+"@"+originalDomain
|
||||
|
||||
profilePageHref=httpPrefix+'://'+domain+'/about/more?instance_actor=true'
|
||||
|
||||
account = {
|
||||
"aliases": [
|
||||
httpPrefix+"://"+domain+"/@"+personName,
|
||||
|
@ -123,7 +125,7 @@ def createWebfingerEndpoint(nickname: str,domain: str,port: int, \
|
|||
],
|
||||
"links": [
|
||||
{
|
||||
"href": httpPrefix+"://"+domain+"/@"+nickname,
|
||||
"href": profilePageHref,
|
||||
"rel": "http://webfinger.net/rel/profile-page",
|
||||
"type": "text/html"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue