Add API types for status and related objects (#29792)
This commit is contained in:
		@@ -3,6 +3,8 @@
 | 
			
		||||
class REST::MediaAttachmentSerializer < ActiveModel::Serializer
 | 
			
		||||
  include RoutingHelper
 | 
			
		||||
 | 
			
		||||
  # Please update `app/javascript/mastodon/api_types/media_attachments.ts` when making changes to the attributes
 | 
			
		||||
 | 
			
		||||
  attributes :id, :type, :url, :preview_url,
 | 
			
		||||
             :remote_url, :preview_remote_url, :text_url, :meta,
 | 
			
		||||
             :description, :blurhash
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,8 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
class REST::PollSerializer < ActiveModel::Serializer
 | 
			
		||||
  # Please update `app/javascript/mastodon/api_types/polls.ts` when making changes to the attributes
 | 
			
		||||
 | 
			
		||||
  attributes :id, :expires_at, :expired,
 | 
			
		||||
             :multiple, :votes_count, :voters_count
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -3,6 +3,8 @@
 | 
			
		||||
class REST::StatusSerializer < ActiveModel::Serializer
 | 
			
		||||
  include FormattingHelper
 | 
			
		||||
 | 
			
		||||
  # Please update `app/javascript/mastodon/api_types/statuses.ts` when making changes to the attributes
 | 
			
		||||
 | 
			
		||||
  attributes :id, :created_at, :in_reply_to_id, :in_reply_to_account_id,
 | 
			
		||||
             :sensitive, :spoiler_text, :visibility, :language,
 | 
			
		||||
             :uri, :url, :replies_count, :reblogs_count,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user