feat: add warnings page, add delete user + acknowledge report options
This commit is contained in:
		
							parent
							
								
									ab77fab0ea
								
							
						
					
					
						commit
						293f68e88c
					
				
					 9 changed files with 249 additions and 9 deletions
				
			
		|  | @ -21,7 +21,7 @@ type Report struct { | |||
| 
 | ||||
| 	CreatedAt    time.Time  `json:"created_at"` | ||||
| 	ResolvedAt   *time.Time `json:"resolved_at"` | ||||
| 	AdminID      *xid.ID    `json:"admin_id"` | ||||
| 	AdminID      xid.ID     `json:"admin_id"` | ||||
| 	AdminComment *string    `json:"admin_comment"` | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -450,6 +450,7 @@ func (db *DB) ResetUser(ctx context.Context, tx pgx.Tx, id xid.ID) error { | |||
| 		Set("username", "deleted-"+hash). | ||||
| 		Set("display_name", nil). | ||||
| 		Set("bio", nil). | ||||
| 		Set("links", nil). | ||||
| 		Set("names", "[]"). | ||||
| 		Set("pronouns", "[]"). | ||||
| 		Set("avatar", nil). | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue