mirror of https://github.com/mastodon/mastodon
Allow unblocking email addresses from any matching account (#29305)
parent
0a33be39c1
commit
8a1423a474
@ -1,6 +1,6 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
Fabricator(:canonical_email_block) do
|
Fabricator(:canonical_email_block) do
|
||||||
email { sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } }
|
email { |attrs| attrs[:reference_account] ? attrs[:reference_account].user_email : sequence(:email) { |i| "#{i}#{Faker::Internet.email}" } }
|
||||||
reference_account { Fabricate.build(:account) }
|
reference_account { Fabricate.build(:account) }
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue