mirror of https://gitlab.com/bashrc2/epicyon
Change shares endpoint name
parent
773208bffd
commit
fdbdfaa9b5
|
@ -300,7 +300,7 @@ def _createPersonBase(baseDir: str, nickname: str, domain: str, port: int,
|
||||||
'followers': personId + '/followers',
|
'followers': personId + '/followers',
|
||||||
'following': personId + '/following',
|
'following': personId + '/following',
|
||||||
'tts': personId + '/speaker',
|
'tts': personId + '/speaker',
|
||||||
'shares': personId + '/shares',
|
'shares': personId + '/catalog',
|
||||||
'hasOccupation': [
|
'hasOccupation': [
|
||||||
{
|
{
|
||||||
'@type': 'Occupation',
|
'@type': 'Occupation',
|
||||||
|
@ -593,6 +593,11 @@ def personUpgradeActor(baseDir: str, personJson: {},
|
||||||
personJson['published'] = published
|
personJson['published'] = published
|
||||||
updateActor = True
|
updateActor = True
|
||||||
|
|
||||||
|
if personJson.get('shares'):
|
||||||
|
if personJson['shares'].endswith('/shares'):
|
||||||
|
personJson['shares'] = personJson['shares']['id'] + '/catalog'
|
||||||
|
updateActor = True
|
||||||
|
|
||||||
occupationName = ''
|
occupationName = ''
|
||||||
if personJson.get('occupationName'):
|
if personJson.get('occupationName'):
|
||||||
occupationName = personJson['occupationName']
|
occupationName = personJson['occupationName']
|
||||||
|
|
Loading…
Reference in New Issue