Add initial support for ingesting and verifying remote quote posts (#34370)
This commit is contained in:
		
							
								
								
									
										9
									
								
								app/serializers/rest/shallow_quote_serializer.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								app/serializers/rest/shallow_quote_serializer.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
class REST::ShallowQuoteSerializer < REST::BaseQuoteSerializer
 | 
			
		||||
  attribute :quoted_status_id
 | 
			
		||||
 | 
			
		||||
  def quoted_status_id
 | 
			
		||||
    quoted_status&.id&.to_s
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
		Reference in New Issue
	
	Block a user