mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:52:30 -05:00 
			
		
		
		
	[bugfix] Normalize status content (don't parse status content as IRI) (#1665)
* start fannying about * finish up Normalize * tidy up * pin to tag * move errors about just a little bit
This commit is contained in:
		
					parent
					
						
							
								4f322f527f
							
						
					
				
			
			
				commit
				
					
						c54510bc74
					
				
			
		
					 16 changed files with 665 additions and 293 deletions
				
			
		|  | @ -66,20 +66,6 @@ func newErrTransportError(err error) error { | |||
| 	return &ErrTransportError{wrapped: err} | ||||
| } | ||||
| 
 | ||||
| // ErrWrongType indicates that an unexpected type was returned from a remote call; | ||||
| // for example, we were served a Person when we were looking for a statusable. | ||||
| type ErrWrongType struct { | ||||
| 	wrapped error | ||||
| } | ||||
| 
 | ||||
| func (err *ErrWrongType) Error() string { | ||||
| 	return fmt.Sprintf("wrong received type: %v", err.wrapped) | ||||
| } | ||||
| 
 | ||||
| func newErrWrongType(err error) error { | ||||
| 	return &ErrWrongType{wrapped: err} | ||||
| } | ||||
| 
 | ||||
| // ErrOther denotes some other kind of weird error, perhaps from a malformed json | ||||
| // or some other weird crapola. | ||||
| type ErrOther struct { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue