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
				
			
		|  | @ -35,7 +35,7 @@ class Form::StatusBatch | |||
|   def delete_statuses | ||||
|     Status.where(id: status_ids).reorder(nil).find_each do |status| | ||||
|       status.discard | ||||
|       RemovalWorker.perform_async(status.id, redraft: false) | ||||
|       RemovalWorker.perform_async(status.id, immediate: true) | ||||
|       Tombstone.find_or_create_by(uri: status.uri, account: status.account, by_moderator: true) | ||||
|       log_action :destroy, status | ||||
|     end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue