Fix: Use strings not symbols to access totalItems in interaction collections (#34594)

This commit is contained in:
Jonny Saunders 2025-05-03 03:37:06 -07:00 committed by GitHub
parent b4394ec129
commit 8b34daf254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,11 +95,11 @@ class ActivityPub::Parser::StatusParser
end
def favourites_count
@object.dig(:likes, :totalItems)
@object.dig('likes', 'totalItems')
end
def reblogs_count
@object.dig(:shares, :totalItems)
@object.dig('shares', 'totalItems')
end
def quote_policy