Let users upload their OpenPGP public key, and serve WKD response #205
@@ -174,7 +174,8 @@ class User < ApplicationRecord
|
||||
|
||||
def gnupg_key
|
||||
return nil unless pgp_pubkey.present?
|
||||
@gnupg_key ||= GPGME::Key.get(pgp_fpr)
|
||||
GPGME::Key.import(pgp_pubkey)
|
||||
GPGME::Key.get(pgp_fpr)
|
||||
end
|
||||
|
||||
def pgp_pubkey_contains_user_address?
|
||||
|
||||
Reference in New Issue
Block a user