Add initial support for ingesting and verifying remote quote posts (#34370)
This commit is contained in:
parent
a324edabdf
commit
df2611a10f
33 changed files with 1643 additions and 22 deletions
9
app/serializers/rest/shallow_status_serializer.rb
Normal file
9
app/serializers/rest/shallow_status_serializer.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class REST::ShallowStatusSerializer < REST::StatusSerializer
|
||||
has_one :quote, key: :quote, serializer: REST::ShallowQuoteSerializer
|
||||
|
||||
# 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
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue