mirror of https://gitlab.com/bashrc2/epicyon
Add featured collections to actor
parent
13eada347d
commit
bb3be870e7
|
@ -4718,7 +4718,14 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'https://w3id.org/security/v1',
|
'https://w3id.org/security/v1',
|
||||||
getDefaultPersonContext()
|
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)
|
randomizeActorImages(actorJson)
|
||||||
saveJson(actorJson, actorFilename)
|
saveJson(actorJson, actorFilename)
|
||||||
webfingerUpdate(baseDir,
|
webfingerUpdate(baseDir,
|
||||||
|
|
Loading…
Reference in New Issue