summaryrefslogtreecommitdiff
path: root/internal/message/accountprocess.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-24 18:49:48 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-24 18:49:48 +0200
commite670c32a9147f632d06ee10c170201677ec1e12d (patch)
tree08a49c9942529d3e7457a54b72d334ad36060976 /internal/message/accountprocess.go
parentfirst draft of Dockerfile (diff)
downloadgotosocial-e670c32a9147f632d06ee10c170201677ec1e12d.tar.xz
Faves (#31)
* start on federating faves * outbound federation of likes working
Diffstat (limited to 'internal/message/accountprocess.go')
-rw-r--r--internal/message/accountprocess.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/message/accountprocess.go b/internal/message/accountprocess.go
index 424081c34..22542f0c3 100644
--- a/internal/message/accountprocess.go
+++ b/internal/message/accountprocess.go
@@ -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 := &gtsmodel.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 {