mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 18:29:54 +00:00
Changing existing attachments
This commit is contained in:
1 parent
7a91b9b71a
commit
a0b20fbf64
1 file changed
+9
-5
@@ -132,7 +132,14 @@ def _outboxPersonReceiveUpdate(recentPostsCache: {},
|
||||
if propertyValue != 'PropertyValue':
|
||||
ctr += 1
|
||||
continue
|
||||
if propertyValue['name'] == newPropertyValue['name']:
|
||||
if propertyValue['name'] != newPropertyValue['name']:
|
||||
ctr += 1
|
||||
continue
|
||||
else:
|
||||
if propertyValue['value'] != newPropertyValue['value']:
|
||||
actorJson['attachment'][ctr]['value'] = \
|
||||
newPropertyValue['value']
|
||||
actorChanged = True
|
||||
found = True
|
||||
break
|
||||
ctr += 1
|
||||
@@ -142,10 +149,7 @@ def _outboxPersonReceiveUpdate(recentPostsCache: {},
|
||||
"type": "PropertyValue",
|
||||
"value": newPropertyValue['value']
|
||||
})
|
||||
else:
|
||||
actorJson['attachment'][ctr]['value'] = \
|
||||
newPropertyValue['value']
|
||||
actorChanged = True
|
||||
actorChanged = True
|
||||
# save actor to file
|
||||
if actorChanged:
|
||||
saveJson(actorJson, actorFilename)
|
||||
|
||||
Reference in new issue
Block a user