Extract ExportSummary class for account object counts (#32227)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2024-10-03 13:09:58 +00:00
1 parent 52afa94f1c
commit d95f6f4410
6 files changed
+177 -117

No files matched your search

-36
View File
@@ -55,42 +55,6 @@ class Export
end
end
def total_storage
account.media_attachments.sum(:file_file_size)
end
def total_statuses
account.statuses_count
end
def total_bookmarks
account.bookmarks.count
end
def total_follows
account.following_count
end
def total_lists
account.owned_lists.count
end
def total_followers
account.followers_count
end
def total_blocks
account.blocking.count
end
def total_mutes
account.muting.count
end
def total_domain_blocks
account.domain_blocks.count
end
private
def to_csv(accounts)