make sure requests are signed by a local user.

local-signing
Alain St-Denis 2023-02-05 12:29:20 -05:00
rodzic 1c188fc878
commit b3c97fc701
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -221,8 +221,10 @@ def handle_send(
}
)
continue
# The parent_user MUST be local
local_user = author_user if author_user.rsa_private_key else parent_user
payloads.append({
"auth": get_http_authentication(author_user.rsa_private_key, f"{author_user.id}#main-key"),
"auth": get_http_authentication(local_user.rsa_private_key, f"{local_user.id}#main-key"),
"headers": {
"Content-Type": 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
},