mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 15:42:26 -05:00 
			
		
		
		
	Faves (#31)
* start on federating faves * outbound federation of likes working
This commit is contained in:
		
					parent
					
						
							
								2dbd132e50
							
						
					
				
			
			
				commit
				
					
						e670c32a91
					
				
			
		
					 12 changed files with 250 additions and 47 deletions
				
			
		|  | @ -22,6 +22,7 @@ import ( | |||
| 	"errors" | ||||
| 	"fmt" | ||||
| 
 | ||||
| 	"github.com/google/uuid" | ||||
| 	apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/db" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/gtsmodel" | ||||
|  | @ -417,11 +418,15 @@ func (p *processor) AccountFollowCreate(authed *oauth.Auth, form *apimodel.Accou | |||
| 	} | ||||
| 
 | ||||
| 	// make the follow request | ||||
| 
 | ||||
| 	newFollowID := uuid.NewString() | ||||
| 
 | ||||
| 	fr := >smodel.FollowRequest{ | ||||
| 		ID:              newFollowID, | ||||
| 		AccountID:       authed.Account.ID, | ||||
| 		TargetAccountID: form.TargetAccountID, | ||||
| 		ShowReblogs:     true, | ||||
| 		URI:             util.GenerateURIForFollow(authed.Account.Username, p.config.Protocol, p.config.Host), | ||||
| 		URI:             util.GenerateURIForFollow(authed.Account.Username, p.config.Protocol, p.config.Host, newFollowID), | ||||
| 		Notify:          false, | ||||
| 	} | ||||
| 	if form.Reblogs != nil { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue