mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:02:25 -05:00 
			
		
		
		
	fix-up some comments referring to old logic
This commit is contained in:
		
					parent
					
						
							
								379105e837
							
						
					
				
			
			
				commit
				
					
						525807f07e
					
				
			
		
					 1 changed files with 2 additions and 7 deletions
				
			
		
							
								
								
									
										9
									
								
								internal/cache/timeline/status.go
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								internal/cache/timeline/status.go
									
										
									
									
										vendored
									
									
								
							|  | @ -387,13 +387,10 @@ func (t *StatusTimeline) Load( | |||
| 				return nil, "", "", gtserror.Newf("error loading statuses: %w", err) | ||||
| 			} | ||||
| 
 | ||||
| 			// Set initial lo, hi values. | ||||
| 			// Set returned lo, hi values. | ||||
| 			lo = metas[len(metas)-1].ID | ||||
| 			hi = metas[0].ID | ||||
| 
 | ||||
| 			// Update paging parameters used for next database query. | ||||
| 			nextPageParams(nextPg, metas[len(metas)-1].ID, order) | ||||
| 
 | ||||
| 			// Allocate slice of expected required API models. | ||||
| 			apiStatuses = make([]*apimodel.Status, 0, len(metas)) | ||||
| 
 | ||||
|  | @ -522,9 +519,7 @@ func loadStatusTimeline( | |||
| 			continue | ||||
| 		} | ||||
| 
 | ||||
| 		// Convert to our cache type, | ||||
| 		// these will get inserted into | ||||
| 		// the cache in prepare() below. | ||||
| 		// Convert to our interstitial meta type. | ||||
| 		metas = toStatusMeta(metas[:0], statuses) | ||||
| 
 | ||||
| 		// Prepare frontend API models for | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue