Prevent multiple handlers for Delete of Actor from running (#9292)
This commit is contained in:
		
					parent
					
						
							
								074960bb0f
							
						
					
				
			
			
				commit
				
					
						9311430ed7
					
				
			
		
					 2 changed files with 10 additions and 2 deletions
				
			
		|  | @ -12,8 +12,10 @@ class ActivityPub::Activity::Delete < ActivityPub::Activity | |||
|   private | ||||
| 
 | ||||
|   def delete_person | ||||
|     SuspendAccountService.new.call(@account) | ||||
|     @account.destroy! | ||||
|     lock_or_return("delete_in_progress:#{@account.id}") do | ||||
|       SuspendAccountService.new.call(@account) | ||||
|       @account.destroy! | ||||
|     end | ||||
|   end | ||||
| 
 | ||||
|   def delete_note | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue