mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-29 04:22:24 -05:00 
			
		
		
		
	[feature] Add experimental instance-federation-spam-filter option (#2685)
		
	* [chore] Move `visibility` to `filter/visibility` * [feature] Add experimental instance-federation-spam-filter option
This commit is contained in:
		
					parent
					
						
							
								87e8cca3ae
							
						
					
				
			
			
				commit
				
					
						9cadc764b3
					
				
			
		
					 80 changed files with 1638 additions and 137 deletions
				
			
		|  | @ -19,12 +19,18 @@ package testrig | |||
| 
 | ||||
| import ( | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/filter/spam" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/filter/visibility" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/state" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/typeutils" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/visibility" | ||||
| ) | ||||
| 
 | ||||
| // NewTestFederatingDB returns a federating DB with the underlying db | ||||
| func NewTestFederatingDB(state *state.State) federatingdb.DB { | ||||
| 	return federatingdb.New(state, typeutils.NewConverter(state), visibility.NewFilter(state)) | ||||
| 	return federatingdb.New( | ||||
| 		state, | ||||
| 		typeutils.NewConverter(state), | ||||
| 		visibility.NewFilter(state), | ||||
| 		spam.NewFilter(state), | ||||
| 	) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue