diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2021-05-07 19:32:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 19:32:58 +0200 |
commit | 1294f9ee4fab176bdc3989d667eed43f57baad5a (patch) | |
tree | 9f497d7994f87c97ad65f2bfe1aa62b594fed092 /app | |
parent | d8e0c8a89e1f1dd1c4ce1513deaeb3c85c6e4a42 (diff) |
Remove PubSubHubbub-related columns from accounts table (#16170)
Diffstat (limited to 'app')
-rw-r--r-- | app/models/account.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 994459338..2c5455d8e 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -6,12 +6,8 @@ # id :bigint(8) not null, primary key # username :string default(""), not null # domain :string -# secret :string default(""), not null # private_key :text # public_key :text default(""), not null -# remote_url :string default(""), not null -# salmon_url :string default(""), not null -# hub_url :string default(""), not null # created_at :datetime not null # updated_at :datetime not null # note :text default(""), not null @@ -49,12 +45,18 @@ # avatar_storage_schema_version :integer # header_storage_schema_version :integer # devices_url :string -# sensitized_at :datetime # suspension_origin :integer +# sensitized_at :datetime # class Account < ApplicationRecord - self.ignored_columns = %w(subscription_expires_at) + self.ignored_columns = %w( + subscription_expires_at + secret + remote_url + salmon_url + hub_url + ) USERNAME_RE = /[a-z0-9_]+([a-z0-9_\.-]+[a-z0-9_]+)?/i MENTION_RE = /(?<=^|[^\/[:word:]])@((#{USERNAME_RE})(?:@[[:word:]\.\-]+[a-z0-9]+)?)/i |