activitypub.postprocess_as2: use real AP actor id in key id

pull/723/head
Ryan Barrett 2023-11-08 11:28:03 -08:00
rodzic e801d52ed7
commit ae2cb2825b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -551,7 +551,7 @@ def postprocess_as2(activity, orig_obj=None, wrap=True):
# underspecified, inferred from this issue and Mastodon's implementation:
# https://github.com/w3c/activitypub/issues/203#issuecomment-297553229
# https://github.com/tootsuite/mastodon/blob/bc2c263504e584e154384ecc2d804aeb1afb1ba3/app/services/activitypub/process_account_service.rb#L77
actor_url = host_url(activity.get('preferredUsername'))
actor_url = g.user.ap_actor()
activity.update({
'publicKey': {
'id': f'{actor_url}#key',