Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `package.json`: Not a real conflict, upstream dependency updated textually too close to a glitch-soc-only dependency. Updated the upstream dependency.
This commit is contained in:
@@ -561,6 +561,12 @@ class Account < ApplicationRecord
|
||||
before_validation :prepare_username, on: :create
|
||||
before_destroy :clean_feed_manager
|
||||
|
||||
def ensure_keys!
|
||||
return unless local? && private_key.blank? && public_key.blank?
|
||||
generate_keys
|
||||
save!
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def prepare_contents
|
||||
|
Reference in New Issue
Block a user