mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 01:02:25 -05:00 
			
		
		
		
	[feature] Federate interaction policies + Accepts; enforce policies (#3138)
* [feature] Federate interaction policies + Accepts; enforce policies * use Acceptable type * fix index * remove appendIRIStrs * add GetAccept federatingdb function * lock on object IRI
This commit is contained in:
		
					parent
					
						
							
								f8d399cf6a
							
						
					
				
			
			
				commit
				
					
						8ab2b19a94
					
				
			
		
					 42 changed files with 3541 additions and 254 deletions
				
			
		|  | @ -104,9 +104,18 @@ func (p *Processor) BoostCreate( | |||
| 		// We're permitted to do this, but since | ||||
| 		// we matched due to presence in a followers | ||||
| 		// or following collection, we should mark | ||||
| 		// as pending approval and wait for an accept. | ||||
| 		// as pending approval and wait until we can | ||||
| 		// prove it's been Accepted by the target. | ||||
| 		pendingApproval = true | ||||
| 
 | ||||
| 		if *target.Local { | ||||
| 			// If the target is local we don't need | ||||
| 			// to wait for an Accept from remote, | ||||
| 			// we can just preapprove it and have | ||||
| 			// the processor create the Accept. | ||||
| 			boost.PreApproved = true | ||||
| 		} | ||||
| 
 | ||||
| 	case policyResult.Permitted(): | ||||
| 		// We're permitted to do this | ||||
| 		// based on another kind of match. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue