diff --git a/internal/processing/workers/fromclientapi.go b/internal/processing/workers/fromclientapi.go index 9ea37a2f2..32b3d8816 100644 --- a/internal/processing/workers/fromclientapi.go +++ b/internal/processing/workers/fromclientapi.go @@ -319,7 +319,7 @@ func (p *clientAPI) CreateStatus(ctx context.Context, cMsg *messages.FromClientA InteractingAccountID: status.AccountID, InteractingAccount: status.Account, InteractionURI: status.URI, - InteractionType: gtsmodel.InteractionLike, + InteractionType: gtsmodel.InteractionReply, Reply: status, URI: uris.GenerateURIForAccept(status.InReplyToAccount.Username, id), AcceptedAt: time.Now(), @@ -621,7 +621,7 @@ func (p *clientAPI) CreateAnnounce(ctx context.Context, cMsg *messages.FromClien InteractingAccountID: boost.AccountID, InteractingAccount: boost.Account, InteractionURI: boost.URI, - InteractionType: gtsmodel.InteractionLike, + InteractionType: gtsmodel.InteractionAnnounce, Announce: boost, URI: uris.GenerateURIForAccept(boost.BoostOfAccount.Username, id), AcceptedAt: time.Now(), diff --git a/internal/processing/workers/fromfediapi.go b/internal/processing/workers/fromfediapi.go index 926825b69..1a42a04fb 100644 --- a/internal/processing/workers/fromfediapi.go +++ b/internal/processing/workers/fromfediapi.go @@ -316,7 +316,7 @@ func (p *fediAPI) CreateStatus(ctx context.Context, fMsg *messages.FromFediAPI) InteractingAccountID: status.AccountID, InteractingAccount: status.Account, InteractionURI: status.URI, - InteractionType: gtsmodel.InteractionLike, + InteractionType: gtsmodel.InteractionReply, Reply: status, URI: uris.GenerateURIForAccept(status.InReplyToAccount.Username, id), AcceptedAt: time.Now(), @@ -657,7 +657,7 @@ func (p *fediAPI) CreateAnnounce(ctx context.Context, fMsg *messages.FromFediAPI InteractingAccountID: boost.AccountID, InteractingAccount: boost.Account, InteractionURI: boost.URI, - InteractionType: gtsmodel.InteractionLike, + InteractionType: gtsmodel.InteractionAnnounce, Announce: boost, URI: uris.GenerateURIForAccept(boost.BoostOfAccount.Username, id), AcceptedAt: time.Now(), diff --git a/internal/processing/workers/util.go b/internal/processing/workers/util.go index b9787456a..3c17eaaf5 100644 --- a/internal/processing/workers/util.go +++ b/internal/processing/workers/util.go @@ -561,7 +561,7 @@ func (u *utils) requestFave( return gtserror.Newf("db error storing interaction request: %w", err) } - // Notify *local* account of pending announce. + // Notify *local* account of pending fave. if err := u.surface.notifyPendingFave(ctx, fave); err != nil { return gtserror.Newf("error notifying pending fave: %w", err) }