2
0

Extract ExportSummary class for account object counts (#32227)

This commit is contained in:
Matt Jankowski
2024-10-03 09:09:58 -04:00
committed by GitHub
parent 52afa94f1c
commit d95f6f4410
6 changed files with 177 additions and 117 deletions

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)