Set dicoverable actor parameter if it doesn't exist

alt-html-css
Bob Mottram 2020-12-17 23:10:34 +00:00
parent 57156455d9
commit 576a72d102
1 changed files with 5 additions and 0 deletions

View File

@ -3767,6 +3767,11 @@ class PubServer(BaseHTTPRequestHandler):
if os.path.isfile(actorFilename):
actorJson = loadJson(actorFilename)
if actorJson:
if not actorJson.get('discoverable'):
# discoverable in profile directory
# which isn't implemented in Epicyon
actorJson['discoverable'] = False
actorChanged = True
# update the avatar/image url file extension
uploads = profileMediaTypesUploaded.items()
for mType, lastPart in uploads: