Fix serialization of 2025 wrapstodon reports (#37103)

This commit is contained in:
Claire
2025-12-03 13:53:16 +01:00
committed by GitHub
parent e222664539
commit c97d25fcbd

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