diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/export.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/export.rb b/app/models/export.rb index cab01f11a..fed41310d 100644 --- a/app/models/export.rb +++ b/app/models/export.rb @@ -29,6 +29,14 @@ class Export end end + def to_followers_accounts_csv + CSV.generate(headers: ['Account address'], write_headers: true) do |csv| + account.followers.find_each do |follow| + csv << [acct(follow)] + end + end + end + def to_lists_csv CSV.generate do |csv| account.owned_lists.select(:title, :id).each do |list| |