Tweaks to instance actor

main
Bob Mottram 2021-08-31 19:35:06 +01:00
parent 2ee6673dc0
commit f7a76eab33
1 changed files with 3 additions and 1 deletions

View File

@ -10283,7 +10283,8 @@ class PubServer(BaseHTTPRequestHandler):
else:
actorDomainUrl = httpPrefix + '://' + domainFull
actorUrl = actorDomainUrl + '/users/Actor'
removeFields = ('icon', 'image', 'tts', 'shares')
removeFields = ('icon', 'image', 'tts', 'shares',
'alsoKnownAs', 'hasOccupation', 'featured')
for r in removeFields:
if actorJson.get(r):
del actorJson[r]
@ -10295,6 +10296,7 @@ class PubServer(BaseHTTPRequestHandler):
actorJson['name'] = 'ACTOR'
actorJson['preferredUsername'] = 'Actor'
actorJson['id'] = actorUrl
actorJson['summary'] = 'Instance Actor'
actorJson['publicKey']['id'] = actorUrl + '#main-key'
actorJson['publicKey']['owner'] = actorUrl
actorJson['url'] = actorUrl