mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 20:12:26 -05:00 
			
		
		
		
	[bugfix] add missing "local" param in public timeline link headers (#2277)
This commit is contained in:
		
					parent
					
						
							
								77c5d74113
							
						
					
				
			
			
				commit
				
					
						805c67b759
					
				
			
		
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -20,6 +20,7 @@ package timeline | ||||||
| import ( | import ( | ||||||
| 	"context" | 	"context" | ||||||
| 	"errors" | 	"errors" | ||||||
|  | 	"strconv" | ||||||
| 
 | 
 | ||||||
| 	apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" | 	apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" | ||||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||||
|  | @ -76,5 +77,8 @@ func (p *Processor) PublicTimelineGet(ctx context.Context, authed *oauth.Auth, m | ||||||
| 		NextMaxIDValue: nextMaxIDValue, | 		NextMaxIDValue: nextMaxIDValue, | ||||||
| 		PrevMinIDValue: prevMinIDValue, | 		PrevMinIDValue: prevMinIDValue, | ||||||
| 		Limit:          limit, | 		Limit:          limit, | ||||||
|  | 		ExtraQueryParams: []string{ | ||||||
|  | 			"local=" + strconv.FormatBool(local), | ||||||
|  | 		}, | ||||||
| 	}) | 	}) | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue