made it so it automaticly trusts every pgp key

This commit is contained in:
bacalhau 2026-03-06 23:16:08 +00:00
parent 27935604fe
commit ccf0729630

View file

@ -107,7 +107,7 @@ def pgp_encrypt_and_import(pgp_key: str, message: str):
return None, None
fingerprint = result.fingerprints[0]
# encrypts message to the user's fingerprint
encrypted = gpg.encrypt(message, recipients=[fingerprint])
encrypted = gpg.encrypt(message, recipients=[fingerprint], always_trust=True)
if not encrypted.ok:
return fingerprint, None
return fingerprint, str(encrypted)