mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 14:42:26 -05:00 
			
		
		
		
	change muchos things
This commit is contained in:
		
					parent
					
						
							
								fffff93b75
							
						
					
				
			
			
				commit
				
					
						2786b5f887
					
				
			
		
					 70 changed files with 999 additions and 570 deletions
				
			
		|  | @ -23,10 +23,12 @@ import ( | |||
| 	"errors" | ||||
| 	"fmt" | ||||
| 
 | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/ap" | ||||
| 	apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtserror" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/messages" | ||||
| ) | ||||
| 
 | ||||
| func (p *processor) Unfave(ctx context.Context, requestingAccount *gtsmodel.Account, targetStatusID string) (*apimodel.Status, gtserror.WithCode) { | ||||
|  | @ -71,9 +73,9 @@ func (p *processor) Unfave(ctx context.Context, requestingAccount *gtsmodel.Acco | |||
| 		} | ||||
| 
 | ||||
| 		// send it back to the processor for async processing | ||||
| 		p.fromClientAPI <- gtsmodel.FromClientAPI{ | ||||
| 			APObjectType:   gtsmodel.ActivityStreamsLike, | ||||
| 			APActivityType: gtsmodel.ActivityStreamsUndo, | ||||
| 		p.fromClientAPI <- messages.FromClientAPI{ | ||||
| 			APObjectType:   ap.ActivityLike, | ||||
| 			APActivityType: ap.ActivityUndo, | ||||
| 			GTSModel:       gtsFave, | ||||
| 			OriginAccount:  requestingAccount, | ||||
| 			TargetAccount:  targetStatus.Account, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue