summaryrefslogtreecommitdiff
path: root/internal/message/accountprocess.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/message/accountprocess.go')
-rw-r--r--internal/message/accountprocess.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/internal/message/accountprocess.go b/internal/message/accountprocess.go
index 22542f0c3..8847e5789 100644
--- a/internal/message/accountprocess.go
+++ b/internal/message/accountprocess.go
@@ -454,13 +454,9 @@ func (p *processor) AccountFollowCreate(authed *oauth.Auth, form *apimodel.Accou
p.fromClientAPI <- gtsmodel.FromClientAPI{
APObjectType: gtsmodel.ActivityStreamsFollow,
APActivityType: gtsmodel.ActivityStreamsCreate,
- GTSModel: &gtsmodel.Follow{
- AccountID: authed.Account.ID,
- TargetAccountID: form.TargetAccountID,
- URI: fr.URI,
- },
- OriginAccount: authed.Account,
- TargetAccount: targetAcct,
+ GTSModel: fr,
+ OriginAccount: authed.Account,
+ TargetAccount: targetAcct,
}
// return whatever relationship results from this