Add support for editing media description and focus point of already-posted statuses (#20878)
* Add backend support for editing media attachments of existing posts * Allow editing media attachments of already-posted toots * Add tests
This commit is contained in:
		
					parent
					
						
							
								d1387579b9
							
						
					
				
			
			
				commit
				
					
						4b92e59f4f
					
				
			
		
					 7 changed files with 83 additions and 11 deletions
				
			
		|  | @ -79,6 +79,7 @@ class Api::V1::StatusesController < Api::BaseController | |||
|       current_account.id, | ||||
|       text: status_params[:status], | ||||
|       media_ids: status_params[:media_ids], | ||||
|       media_attributes: status_params[:media_attributes], | ||||
|       sensitive: status_params[:sensitive], | ||||
|       language: status_params[:language], | ||||
|       spoiler_text: status_params[:spoiler_text], | ||||
|  | @ -128,6 +129,12 @@ class Api::V1::StatusesController < Api::BaseController | |||
|       :language, | ||||
|       :scheduled_at, | ||||
|       media_ids: [], | ||||
|       media_attributes: [ | ||||
|         :id, | ||||
|         :thumbnail, | ||||
|         :description, | ||||
|         :focus, | ||||
|       ], | ||||
|       poll: [ | ||||
|         :multiple, | ||||
|         :hide_totals, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue