From c67bbe5ba036ab500f6a2a1fd4ad4b0a91b3a9f9 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:54:40 +0100 Subject: [PATCH] update to set requesting account when deleting status (#2849) --- internal/federation/federatingdb/delete.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/federation/federatingdb/delete.go b/internal/federation/federatingdb/delete.go index 14bc20209..622ef6d3d 100644 --- a/internal/federation/federatingdb/delete.go +++ b/internal/federation/federatingdb/delete.go @@ -53,10 +53,11 @@ func (f *federatingDB) Delete(ctx context.Context, id *url.URL) error { if s, err := f.state.DB.GetStatusByURI(ctx, id.String()); err == nil && requestingAcct.ID == s.AccountID { l.Debugf("deleting status: %s", s.ID) f.state.Workers.EnqueueFediAPI(ctx, messages.FromFediAPI{ - APObjectType: ap.ObjectNote, - APActivityType: ap.ActivityDelete, - GTSModel: s, - ReceivingAccount: receivingAcct, + APObjectType: ap.ObjectNote, + APActivityType: ap.ActivityDelete, + GTSModel: s, + ReceivingAccount: receivingAcct, + RequestingAccount: requestingAcct, }) }