Instance actor properties

main
Bob Mottram 2021-09-14 15:01:59 +01:00
parent 7b5fe4af73
commit 0f218abe23
1 changed files with 4 additions and 3 deletions

View File

@ -10798,9 +10798,11 @@ class PubServer(BaseHTTPRequestHandler):
actorDomainUrl = httpPrefix + '://' + domainFull
actorUrl = actorDomainUrl + '/users/Actor'
removeFields = ('icon', 'image', 'tts', 'shares',
'alsoKnownAs', 'hasOccupation', 'featured')
'alsoKnownAs', 'hasOccupation', 'featured',
'featuredTags', 'discoverable', 'published',
'devices')
for r in removeFields:
if actorJson.get(r):
if r in actorJson:
del actorJson[r]
actorJson['endpoints'] = {}
if enableSharedInbox:
@ -10811,7 +10813,6 @@ class PubServer(BaseHTTPRequestHandler):
actorJson['preferredUsername'] = domainFull
actorJson['id'] = actorDomainUrl + '/actor'
actorJson['type'] = 'Application'
actorJson['discoverable'] = False
actorJson['summary'] = 'Instance Actor'
actorJson['publicKey']['id'] = actorDomainUrl + '/actor#main-key'
actorJson['publicKey']['owner'] = actorDomainUrl + '/actor'