forked from indymedia/epicyon
Only jsonld sign if a previous signature does not exist
parent
bbb767ae45
commit
3766f6e9c1
2
posts.py
2
posts.py
|
@ -1419,6 +1419,7 @@ def sendPost(projectVersion: str,
|
|||
return 7
|
||||
postPath = inboxUrl.split(toDomain, 1)[1]
|
||||
|
||||
if not postJsonObject.get('signature'):
|
||||
try:
|
||||
signedPostJsonObject = jsonldSign(postJsonObject, privateKeyPem)
|
||||
postJsonObject = signedPostJsonObject
|
||||
|
@ -1749,6 +1750,7 @@ def sendSignedJson(postJsonObject: {}, session, baseDir: str,
|
|||
|
||||
addFollowersToPublicPost(postJsonObject)
|
||||
|
||||
if not postJsonObject.get('signature'):
|
||||
try:
|
||||
signedPostJsonObject = jsonldSign(postJsonObject, privateKeyPem)
|
||||
postJsonObject = signedPostJsonObject
|
||||
|
|
Loading…
Reference in New Issue