Fix serialization of 2025 wrapstodon reports (#37103)

This commit is contained in:
Claire authored and GitHub committed 2025-12-03 12:53:16 +00:00
1 parent e222664539
commit c97d25fcbd
1 file changed
+6 -1
+6 -1
View File
@@ -29,7 +29,12 @@ class GeneratedAnnualReport < ApplicationRecord
end
def account_ids
data['most_reblogged_accounts'].pluck('account_id') + data['commonly_interacted_with_accounts'].pluck('account_id')
case schema_version
when 1
data['most_reblogged_accounts'].pluck('account_id') + data['commonly_interacted_with_accounts'].pluck('account_id')
when 2
[]
end
end
def status_ids