diff options
Diffstat (limited to 'app/models/account.rb')
-rw-r--r-- | app/models/account.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index a26276b9b..deeea2f58 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -46,6 +46,8 @@ # silenced_at :datetime # suspended_at :datetime # hidden :boolean +# hidden :boolean default(FALSE), not null +# vars :jsonb not null # class Account < ApplicationRecord @@ -296,6 +298,10 @@ class Account < ApplicationRecord self.fields = tmp end + def vars + self[:vars] + end + def magic_key modulus, exponent = [keypair.public_key.n, keypair.public_key.e].map do |component| result = [] |