summaryrefslogtreecommitdiff
path: root/internal/message/accountprocess.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-05-28 19:57:04 +0200
committerLibravatar GitHub <noreply@github.com>2021-05-28 19:57:04 +0200
commit87177d840b9703f572392ef4bd0f5013fd5c3a77 (patch)
treec59388998d5defd5ec3577483f70736238953f72 /internal/message/accountprocess.go
parentNotifications (#34) (diff)
downloadgotosocial-87177d840b9703f572392ef4bd0f5013fd5c3a77.tar.xz
Announce/boost (#35)
Remote boosts incoming/outgoing now working.
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