mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
Fixes broadcasting
This commit is contained in:
parent
acba5cfc75
commit
8260dcf804
2 changed files with 2 additions and 3 deletions
|
@ -57,7 +57,7 @@ def broadcast_task(sender_id, activity, recipients):
|
|||
except requests.exceptions.HTTPError as e:
|
||||
# TODO: maybe keep track of users who cause errors
|
||||
errors.append({
|
||||
'error': e,
|
||||
'error': str(e),
|
||||
'recipient': recipient,
|
||||
'activity': activity,
|
||||
})
|
||||
|
|
|
@ -44,8 +44,7 @@ def make_signature(sender, destination, date, digest):
|
|||
|
||||
def make_digest(data):
|
||||
''' creates a message digest for signing '''
|
||||
return 'SHA-256=' + b64encode(hashlib.sha256(data.encode('utf-8'))\
|
||||
.digest()).decode('utf-8')
|
||||
return 'SHA-256=' + b64encode(hashlib.sha256(data).digest()).decode('utf-8')
|
||||
|
||||
|
||||
def verify_digest(request):
|
||||
|
|
Loading…
Reference in a new issue