mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-21 17:53:18 +00:00
Use pluck on DomainAllow.allowed_domains for export (#36019)
This commit is contained in:
parent
350a802851
commit
3efba15b3c
5 changed files with 44 additions and 22 deletions
|
|
@ -49,8 +49,8 @@ module Admin
|
|||
|
||||
def export_data
|
||||
CSV.generate(headers: export_headers, write_headers: true) do |content|
|
||||
DomainAllow.allowed_domains.each do |instance|
|
||||
content << [instance.domain]
|
||||
DomainAllow.allowed_domains.each do |domain|
|
||||
content << [domain]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue