mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 02:15:12 +00:00
Change shares endpoint name
This commit is contained in:
1 parent
773208bffd
commit
fdbdfaa9b5
1 file changed
+6
-1
@@ -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']
|
||||
|
||||
Reference in new issue
Block a user