Refactor all ActivityPub deliveries to be serialized and signed through one concern (#10966)
This commit is contained in:
@ -204,6 +204,10 @@ class Account < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
def sign?
|
||||
true
|
||||
end
|
||||
|
||||
def keypair
|
||||
@keypair ||= OpenSSL::PKey::RSA.new(private_key || public_key)
|
||||
end
|
||||
|
Reference in New Issue
Block a user