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

This commit is contained in:
Jonny Saunders authored and GitHub committed 2025-05-03 10:37:06 +00:00
1 parent b4394ec129
commit 8b34daf254
1 file changed
+2 -2
+2 -2
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