From f7a76eab330ea96811eaf47f6bf6dd7298375c72 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 31 Aug 2021 19:35:06 +0100 Subject: [PATCH] Tweaks to instance actor --- daemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 32a96bcd8..6d0908df6 100644 --- a/daemon.py +++ b/daemon.py @@ -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