diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-21 20:50:30 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-21 20:50:30 -0500 |
commit | 084b9504017e519e33007f7aa8cdff7d571f954a (patch) | |
tree | bcefc968d1b5ae0ba40bac9adb2eb8955c3b6a21 /db/migrate | |
parent | bca5a3073f3f6bee2c64f3e199e9e56d0dd7ff7e (diff) |
split `hide public profile` & `hide public ap outbox` into separate user options, make original `Account.hidden` prop federation-affecting `invisible mode`
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20190722014444_migrate_hidden_to_hide_profile.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20190722014444_migrate_hidden_to_hide_profile.rb b/db/migrate/20190722014444_migrate_hidden_to_hide_profile.rb new file mode 100644 index 000000000..c4d305e6b --- /dev/null +++ b/db/migrate/20190722014444_migrate_hidden_to_hide_profile.rb @@ -0,0 +1,10 @@ +class MigrateHiddenToHideProfile < ActiveRecord::Migration[5.2] + disable_ddl_transaction! + def up + Account.local.find_each do |account| + next unless account&.user + account.user.settings.hide_public_profile = account.hidden || false + account.hidden = false + end + end +end |