More mocks in tests
This commit is contained in:
parent
104e4d7cf7
commit
9c3bec23b8
3 changed files with 13 additions and 12 deletions
|
@ -228,7 +228,7 @@ class ObjectMixin(ActivitypubMixin):
|
|||
|
||||
signature = None
|
||||
create_id = self.remote_id + '/activity'
|
||||
if 'content' in activity_object:
|
||||
if 'content' in activity_object and activity_object['content']:
|
||||
signer = pkcs1_15.new(RSA.import_key(user.key_pair.private_key))
|
||||
content = activity_object['content']
|
||||
signed_message = signer.sign(SHA256.new(content.encode('utf8')))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue