From fdbdfaa9b58db50ba4cfae9657dfe29f158be6d9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 2 Aug 2021 11:12:45 +0100 Subject: [PATCH] Change shares endpoint name --- person.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/person.py b/person.py index c17a28b28..b289d8eb0 100644 --- a/person.py +++ b/person.py @@ -300,7 +300,7 @@ def _createPersonBase(baseDir: str, nickname: str, domain: str, port: int, 'followers': personId + '/followers', 'following': personId + '/following', 'tts': personId + '/speaker', - 'shares': personId + '/shares', + 'shares': personId + '/catalog', 'hasOccupation': [ { '@type': 'Occupation', @@ -593,6 +593,11 @@ def personUpgradeActor(baseDir: str, personJson: {}, personJson['published'] = published updateActor = True + if personJson.get('shares'): + if personJson['shares'].endswith('/shares'): + personJson['shares'] = personJson['shares']['id'] + '/catalog' + updateActor = True + occupationName = '' if personJson.get('occupationName'): occupationName = personJson['occupationName']