Fix response of unreblog/unfavourite APIs (#4204)
Both APIs process asynchronously, so reblogged/favourited fields in the response should be set to `false` manually.
This commit is contained in:
		
					parent
					
						
							
								1618b68bfa
							
						
					
				
			
			
				commit
				
					
						1896a154f5
					
				
			
		
					 3 changed files with 6 additions and 6 deletions
				
			
		|  | @ -19,7 +19,7 @@ class Api::V1::Statuses::FavouritesController < Api::BaseController | |||
| 
 | ||||
|     UnfavouriteWorker.perform_async(current_user.account_id, @status.id) | ||||
| 
 | ||||
|     render json: @status, serializer: REST::StatusSerializer | ||||
|     render json: @status, serializer: REST::StatusSerializer, relationships: StatusRelationshipsPresenter.new([@status], current_user&.account_id, favourites_map: @favourites_map) | ||||
|   end | ||||
| 
 | ||||
|   private | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue