mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 08:48:53 +00:00
Fix serialization of quote policies in nested quotes (#35828)
This commit is contained in:
@@ -6,4 +6,5 @@ class REST::ShallowStatusSerializer < REST::StatusSerializer
|
||||
# It looks like redefining one `has_one` requires redefining all inherited ones
|
||||
has_one :preview_card, key: :card, serializer: REST::PreviewCardSerializer
|
||||
has_one :preloadable_poll, key: :poll, serializer: REST::PollSerializer
|
||||
has_one :quote_approval, if: -> { Mastodon::Feature.outgoing_quotes_enabled? }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user