mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 18:12:26 -05:00 
			
		
		
		
	remove local / public caches (is out of scope for this work), share more timeline code
This commit is contained in:
		
					parent
					
						
							
								294e1a6bd8
							
						
					
				
			
			
				commit
				
					
						227d6edc3e
					
				
			
		
					 10 changed files with 256 additions and 180 deletions
				
			
		|  | @ -1041,9 +1041,7 @@ func (p *clientAPI) DeleteAccountOrUser(ctx context.Context, cMsg *messages.From | |||
| 	p.surface.removeTimelineEntriesByAccount(account.ID) | ||||
| 
 | ||||
| 	// Remove any of their cached timelines. | ||||
| 	p.state.Caches.Timelines.Public.Delete(account.ID) | ||||
| 	p.state.Caches.Timelines.Home.Delete(account.ID) | ||||
| 	p.state.Caches.Timelines.Local.Delete(account.ID) | ||||
| 
 | ||||
| 	// Get the IDs of all the lists owned by the given account ID. | ||||
| 	listIDs, err := p.state.DB.GetListIDsByAccountID(ctx, account.ID) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue