mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
Fix serialization when an account is missing (#38370)
This commit is contained in:
@@ -10,6 +10,6 @@ class REST::CollectionWithAccountsSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def accounts
|
||||
[object.account] + object.collection_items.map(&:account)
|
||||
[object.account] + object.collection_items.filter_map(&:account)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user