mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 15:42:26 -05:00 
			
		
		
		
	[feature] add support for polls + receiving federated status edits (#2330)
This commit is contained in:
		
					parent
					
						
							
								7204ccedc3
							
						
					
				
			
			
				commit
				
					
						e9e5dc5a40
					
				
			
		
					 84 changed files with 3992 additions and 570 deletions
				
			
		|  | @ -47,8 +47,11 @@ func (p *Processor) GetTargetStatusBy( | |||
| 
 | ||||
| 	if target == nil { | ||||
| 		// DB loader could not find status in database. | ||||
| 		err := errors.New("target status not found") | ||||
| 		return nil, false, gtserror.NewErrorNotFound(err) | ||||
| 		const text = "target status not found" | ||||
| 		return nil, false, gtserror.NewErrorNotFound( | ||||
| 			errors.New(text), | ||||
| 			text, | ||||
| 		) | ||||
| 	} | ||||
| 
 | ||||
| 	// Check whether target status is visible to requesting account. | ||||
|  | @ -106,8 +109,11 @@ func (p *Processor) GetVisibleTargetStatus( | |||
| 
 | ||||
| 	if !visible { | ||||
| 		// Target should not be seen by requester. | ||||
| 		err := errors.New("target status not found") | ||||
| 		return nil, gtserror.NewErrorNotFound(err) | ||||
| 		const text = "target status not found" | ||||
| 		return nil, gtserror.NewErrorNotFound( | ||||
| 			errors.New(text), | ||||
| 			text, | ||||
| 		) | ||||
| 	} | ||||
| 
 | ||||
| 	return target, nil | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue