mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 05:12:25 -05:00 
			
		
		
		
	[chore] Deinterface processor and subprocessors (#1501)
* [chore] Deinterface processor and subprocessors * expose subprocessors via function calls * missing license header
This commit is contained in:
		
					parent
					
						
							
								adb596600b
							
						
					
				
			
			
				commit
				
					
						b6fbdc66c1
					
				
			
		
					 246 changed files with 2545 additions and 4549 deletions
				
			
		|  | @ -46,12 +46,12 @@ func (suite *FromClientAPITestSuite) TestProcessStreamNewStatus() { | |||
| 	receivingAccount := suite.testAccounts["local_account_1"] | ||||
| 
 | ||||
| 	// open a home timeline stream for zork | ||||
| 	wssStream, errWithCode := suite.processor.OpenStreamForAccount(ctx, receivingAccount, stream.TimelineHome) | ||||
| 	wssStream, errWithCode := suite.processor.Stream().Open(ctx, receivingAccount, stream.TimelineHome) | ||||
| 	suite.NoError(errWithCode) | ||||
| 
 | ||||
| 	// open another stream for zork, but for a different timeline; | ||||
| 	// this shouldn't get stuff streamed into it, since it's for the public timeline | ||||
| 	irrelevantStream, errWithCode := suite.processor.OpenStreamForAccount(ctx, receivingAccount, stream.TimelinePublic) | ||||
| 	irrelevantStream, errWithCode := suite.processor.Stream().Open(ctx, receivingAccount, stream.TimelinePublic) | ||||
| 	suite.NoError(errWithCode) | ||||
| 
 | ||||
| 	// make a new status from admin account | ||||
|  | @ -125,7 +125,7 @@ func (suite *FromClientAPITestSuite) TestProcessStatusDelete() { | |||
| 	boostOfDeletedStatus := suite.testStatuses["admin_account_status_4"] | ||||
| 
 | ||||
| 	// open a home timeline stream for turtle, who follows zork | ||||
| 	wssStream, errWithCode := suite.processor.OpenStreamForAccount(ctx, receivingAccount, stream.TimelineHome) | ||||
| 	wssStream, errWithCode := suite.processor.Stream().Open(ctx, receivingAccount, stream.TimelineHome) | ||||
| 	suite.NoError(errWithCode) | ||||
| 
 | ||||
| 	// delete the status from the db first, to mimic what would have already happened earlier up the flow | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue