From bb3be870e7dcd190631eee523358ef2c2f590e45 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 Jan 2021 13:34:40 +0000 Subject: [PATCH] Add featured collections to actor --- daemon.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 4da16e1da..4eb0960ba 100644 --- a/daemon.py +++ b/daemon.py @@ -4718,7 +4718,14 @@ class PubServer(BaseHTTPRequestHandler): 'https://w3id.org/security/v1', getDefaultPersonContext() ] - actorJson['discoverable'] = True + if actorJson.get('nomadicLocations'): + del actorJson['nomadicLocations'] + if not actorJson.get('featured'): + actorJson['featured'] = \ + actorJson['id'] + '/collections/featured' + if not actorJson.get('featuredTags'): + actorJson['featuredTags'] = \ + actorJson['id'] + '/collections/tags' randomizeActorImages(actorJson) saveJson(actorJson, actorFilename) webfingerUpdate(baseDir,