mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 17:52:25 -05:00 
			
		
		
		
	shift around some logic to make sure things aren't accidentally left set
This commit is contained in:
		
					parent
					
						
							
								b76398f685
							
						
					
				
			
			
				commit
				
					
						a526541050
					
				
			
		
					 1 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										10
									
								
								internal/cache/timeline/status.go
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								internal/cache/timeline/status.go
									
										
									
									
										vendored
									
									
								
							|  | @ -346,6 +346,11 @@ func (t *StatusTimeline) Load( | ||||||
| 	nextPg.Min.Value = lo | 	nextPg.Min.Value = lo | ||||||
| 	nextPg.Max.Value = hi | 	nextPg.Max.Value = hi | ||||||
| 
 | 
 | ||||||
|  | 	// Reset lo, hi values from being | ||||||
|  | 	// used as input arguments, ready | ||||||
|  | 	// to be updated for return. | ||||||
|  | 	lo, hi = "", "" | ||||||
|  | 
 | ||||||
| 	// Interstitial meta objects. | 	// Interstitial meta objects. | ||||||
| 	var metas []*StatusMeta | 	var metas []*StatusMeta | ||||||
| 
 | 
 | ||||||
|  | @ -374,11 +379,6 @@ func (t *StatusTimeline) Load( | ||||||
| 			dir, | 			dir, | ||||||
| 		) | 		) | ||||||
| 
 | 
 | ||||||
| 		// Reset lo, hi values from being |  | ||||||
| 		// used as input arguments, ready |  | ||||||
| 		// to be updated for return. |  | ||||||
| 		lo, hi = "", "" |  | ||||||
| 
 |  | ||||||
| 		if len(metas) > 0 { | 		if len(metas) > 0 { | ||||||
| 			// Before we can do any filtering, we need | 			// Before we can do any filtering, we need | ||||||
| 			// to load status models for cached entries. | 			// to load status models for cached entries. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue