Export and import show_reblogs together with following list (#10495)
* Refactor imports * Export show_reblogs when exporting list of followed users * Add support for importing show_reblogs with following collection * Fix tests
This commit is contained in:
1 parent
619bbc23ef
commit
cb71c95e22
7 files changed
+112
-17
No files matched your search
@@ -22,7 +22,11 @@ class Export
|
||||
end
|
||||
|
||||
def to_following_accounts_csv
|
||||
to_csv account.following.select(:username, :domain)
|
||||
CSV.generate(headers: ['Account address', 'Show boosts'], write_headers: true) do |csv|
|
||||
account.active_relationships.includes(:target_account).reorder(id: :desc).each do |follow|
|
||||
csv << [acct(follow.target_account), follow.show_reblogs]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def to_lists_csv
|
||||
|
||||
Reference in new issue
Block a user