mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:12:25 -05:00 
			
		
		
		
	[feature] Rework timeline code to make it useful for more than just statuses (#373)
* add preparable and timelineable interfaces * initialize timeline manager within the processor * generic renaming * move status-specific timeline logic into the processor * refactor timeline to make it useful for more than statuses
This commit is contained in:
		
					parent
					
						
							
								98341a1d4d
							
						
					
				
			
			
				commit
				
					
						1b36e85840
					
				
			
		
					 26 changed files with 801 additions and 566 deletions
				
			
		|  | @ -69,7 +69,7 @@ func (suite *WebfingerGetTestSuite) TestFingerUser() { | |||
| func (suite *WebfingerGetTestSuite) TestFingerUserWithDifferentAccountDomainByHost() { | ||||
| 	viper.Set(config.Keys.Host, "gts.example.org") | ||||
| 	viper.Set(config.Keys.AccountDomain, "example.org") | ||||
| 	suite.processor = processing.NewProcessor(suite.tc, suite.federator, testrig.NewTestOauthServer(suite.db), testrig.NewTestMediaHandler(suite.db, suite.storage), suite.storage, testrig.NewTestTimelineManager(suite.db), suite.db, suite.emailSender) | ||||
| 	suite.processor = processing.NewProcessor(suite.tc, suite.federator, testrig.NewTestOauthServer(suite.db), testrig.NewTestMediaHandler(suite.db, suite.storage), suite.storage, suite.db, suite.emailSender) | ||||
| 	suite.webfingerModule = webfinger.New(suite.processor).(*webfinger.Module) | ||||
| 
 | ||||
| 	targetAccount := accountDomainAccount() | ||||
|  | @ -103,7 +103,7 @@ func (suite *WebfingerGetTestSuite) TestFingerUserWithDifferentAccountDomainByHo | |||
| func (suite *WebfingerGetTestSuite) TestFingerUserWithDifferentAccountDomainByAccountDomain() { | ||||
| 	viper.Set(config.Keys.Host, "gts.example.org") | ||||
| 	viper.Set(config.Keys.AccountDomain, "example.org") | ||||
| 	suite.processor = processing.NewProcessor(suite.tc, suite.federator, testrig.NewTestOauthServer(suite.db), testrig.NewTestMediaHandler(suite.db, suite.storage), suite.storage, testrig.NewTestTimelineManager(suite.db), suite.db, suite.emailSender) | ||||
| 	suite.processor = processing.NewProcessor(suite.tc, suite.federator, testrig.NewTestOauthServer(suite.db), testrig.NewTestMediaHandler(suite.db, suite.storage), suite.storage, suite.db, suite.emailSender) | ||||
| 	suite.webfingerModule = webfinger.New(suite.processor).(*webfinger.Module) | ||||
| 
 | ||||
| 	targetAccount := accountDomainAccount() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue