From 084b9504017e519e33007f7aa8cdff7d571f954a Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 21 Jul 2019 20:50:30 -0500 Subject: split `hide public profile` & `hide public ap outbox` into separate user options, make original `Account.hidden` prop federation-affecting `invisible mode` --- db/migrate/20190722014444_migrate_hidden_to_hide_profile.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrate/20190722014444_migrate_hidden_to_hide_profile.rb (limited to 'db/migrate') 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 -- cgit