mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:32:24 -05:00 
			
		
		
		
	[bugfix] new token API issues (#4022)
* fix incorrect endpoint being registered for /token/{id}
* update the maximum page value for tokens endpoint to 100
* update the available tokens page options
* set a default limit of 25 to match the first available settings panel option
* ensure OnInvalidateToken() hook is called during token delete
	
	
This commit is contained in:
		
					parent
					
						
							
								2fce027808
							
						
					
				
			
			
				commit
				
					
						14899733c8
					
				
			
		
					 4 changed files with 43 additions and 26 deletions
				
			
		|  | @ -117,9 +117,9 @@ func (m *Module) TokensInfoGETHandler(c *gin.Context) { | |||
| 	} | ||||
| 
 | ||||
| 	page, errWithCode := paging.ParseIDPage(c, | ||||
| 		0,  // min limit | ||||
| 		80, // max limit | ||||
| 		20, // default limit | ||||
| 		0,   // min limit | ||||
| 		100, // max limit | ||||
| 		25,  // default limit | ||||
| 	) | ||||
| 	if errWithCode != nil { | ||||
| 		apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue