Change deletes to preserve soft-deleted statuses in unresolved reports (#11805)
Change all account actions except "none" to resolve all unresolved reports Refactor `SuspendAccountService` to be more readable
This commit is contained in:
		
					parent
					
						
							
								4fe127664b
							
						
					
				
			
			
				commit
				
					
						c5d37f18cb
					
				
			
		
					 21 changed files with 98 additions and 45 deletions
				
			
		|  | @ -58,7 +58,7 @@ class Api::V1::Admin::AccountsController < Api::BaseController | |||
| 
 | ||||
|   def reject | ||||
|     authorize @account.user, :reject? | ||||
|     SuspendAccountService.new.call(@account, including_user: true, destroy: true, skip_distribution: true) | ||||
|     SuspendAccountService.new.call(@account, reserve_email: false, reserve_username: false) | ||||
|     render json: @account, serializer: REST::Admin::AccountSerializer | ||||
|   end | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue