mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 11:42:25 -05:00 
			
		
		
		
	[feature/frontend] Reports frontend v2 (#3022)
* use apiutil + paging in admin processor+handlers * we're making it happen * fix little whoopsie * styling for report list * don't youuuu forget about meee don't don't don't don't * last bits * sanitize content before showing in report statuses * update report docs
This commit is contained in:
		
					parent
					
						
							
								b08c1bd0cb
							
						
					
				
			
			
				commit
				
					
						d2b3d37724
					
				
			
		
					 56 changed files with 1389 additions and 726 deletions
				
			
		|  | @ -18,7 +18,6 @@ | |||
| package admin | ||||
| 
 | ||||
| import ( | ||||
| 	"errors" | ||||
| 	"fmt" | ||||
| 	"net/http" | ||||
| 
 | ||||
|  | @ -95,10 +94,9 @@ func (m *Module) RuleDELETEHandler(c *gin.Context) { | |||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	ruleID := c.Param(IDKey) | ||||
| 	if ruleID == "" { | ||||
| 		err := errors.New("no rule id specified") | ||||
| 		apiutil.ErrorHandler(c, gtserror.NewErrorBadRequest(err, err.Error()), m.processor.InstanceGetV1) | ||||
| 	ruleID, errWithCode := apiutil.ParseID(c.Param(apiutil.IDKey)) | ||||
| 	if errWithCode != nil { | ||||
| 		apiutil.ErrorHandler(c, errWithCode, m.processor.InstanceGetV1) | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue