forked from indymedia/epicyon
Add nomadicLocations to actor
parent
c2187aa007
commit
5c2905d57d
|
@ -210,7 +210,14 @@ def createPersonBase(baseDir: str,nickname: str,domain: str,port: int, \
|
|||
},
|
||||
'tag': [],
|
||||
'type': personType,
|
||||
'url': personUrl
|
||||
'url': personUrl,
|
||||
'nomadicLocations': [{
|
||||
'id': personId,
|
||||
'type': 'nomadicLocation',
|
||||
'locationAddress':'acct:'+nickname+'@'+domain,
|
||||
'locationPrimary':True,
|
||||
'locationDeleted':False
|
||||
}]
|
||||
}
|
||||
|
||||
if nickname=='inbox':
|
||||
|
|
6
posts.py
6
posts.py
|
@ -2260,7 +2260,7 @@ def createBoxIndexed(recentPostsCache: {}, \
|
|||
domain=domain+':'+str(port)
|
||||
|
||||
boxActor=httpPrefix+'://'+domain+'/users/'+nickname
|
||||
|
||||
|
||||
pageStr='?page=true'
|
||||
if pageNumber:
|
||||
try:
|
||||
|
@ -2689,7 +2689,7 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str, \
|
|||
announcedJson= \
|
||||
getJson(session,postJsonObject['object'],asHeader, \
|
||||
None,projectVersion,httpPrefix,domain)
|
||||
|
||||
|
||||
if not announcedJson:
|
||||
return None
|
||||
|
||||
|
@ -2716,7 +2716,7 @@ def downloadAnnounce(session,baseDir: str,httpPrefix: str, \
|
|||
rejectAnnounce(announceFilename)
|
||||
#pprint(announcedJson)
|
||||
return None
|
||||
|
||||
|
||||
# wrap in create to be consistent with other posts
|
||||
announcedJson= \
|
||||
outboxMessageCreateWrap(httpPrefix, \
|
||||
|
|
Loading…
Reference in New Issue