diff options
author | ThibG <thib@sitedethib.com> | 2020-07-01 13:51:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 13:51:15 +0200 |
commit | 35cedc922ced6502f18b11353df661cf61c8ae2f (patch) | |
tree | 10c12d29a781dc398df9a98e7ec4a40183975cc8 /spec/fabricators | |
parent | 411bf188bbb9acb48b7bb1a14066f4975e036940 (diff) |
Change move handler to carry blocks over (#14144)
* Change move handler to carry blocks and mutes over When user A blocks user B and B moves to a new account C, make A block C accordingly. Note that it only works if A's instance is aware of the Move, that is, if B is on A's instance or has followers there. * Also notify instances with known people blocking you when moving * Add automatic account notes when blocking/muting an account that had no note
Diffstat (limited to 'spec/fabricators')
-rw-r--r-- | spec/fabricators/account_migration_fabricator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/fabricators/account_migration_fabricator.rb b/spec/fabricators/account_migration_fabricator.rb index 3b3fc2077..2a8e747a8 100644 --- a/spec/fabricators/account_migration_fabricator.rb +++ b/spec/fabricators/account_migration_fabricator.rb @@ -1,6 +1,6 @@ Fabricator(:account_migration) do account - target_account + target_account { |attrs| Fabricate(:account, also_known_as: [ActivityPub::TagManager.instance.uri_for(attrs[:account])]) } + acct { |attrs| attrs[:target_account].acct } followers_count 1234 - acct 'test@example.com' end |