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:
Claire
2022-04-27 08:48:21 +02:00
10 changed files with 216 additions and 126 deletions

View File

@@ -13,7 +13,7 @@ module AccountFinderConcern
end
def representative
Account.find(-99)
Account.find(-99).tap(&:ensure_keys!)
rescue ActiveRecord::RecordNotFound
Account.create!(id: -99, actor_type: 'Application', locked: true, username: Rails.configuration.x.local_domain)
end