about summary refs log tree commit diff
path: root/app/controllers/settings/exports
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-15 13:10:50 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-15 14:12:21 -0500
commit0a5eba734e6aa6a6e7e8f64b022af8ea129c9f5d (patch)
treee6c0c0e6d54e03eecb22af00ba3ec5af1ac71fc2 /app/controllers/settings/exports
parent29643fd6c42bcee5a1d6a4a137256b33996c60f2 (diff)
add ability to export followers
Diffstat (limited to 'app/controllers/settings/exports')
-rw-r--r--app/controllers/settings/exports/followers_accounts_controller.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/controllers/settings/exports/followers_accounts_controller.rb b/app/controllers/settings/exports/followers_accounts_controller.rb
new file mode 100644
index 000000000..5ed5d6160
--- /dev/null
+++ b/app/controllers/settings/exports/followers_accounts_controller.rb
@@ -0,0 +1,19 @@
+# frozen_string_literal: true
+
+module Settings
+  module Exports
+    class FollowersAccountsController < ApplicationController
+      include ExportControllerConcern
+
+      def index
+        send_export_file
+      end
+
+      private
+
+      def export_data
+        @export.to_followers_accounts_csv
+      end
+    end
+  end
+end