Add featured collections to actor

main
Bob Mottram 2021-01-21 13:34:40 +00:00
parent 13eada347d
commit bb3be870e7
1 changed files with 8 additions and 1 deletions

View File

@ -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,