2
0

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

View File

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