update to set requesting account when deleting status (#2849)
This commit is contained in:
parent
cef9924d9a
commit
c67bbe5ba0
|
@ -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 {
|
if s, err := f.state.DB.GetStatusByURI(ctx, id.String()); err == nil && requestingAcct.ID == s.AccountID {
|
||||||
l.Debugf("deleting status: %s", s.ID)
|
l.Debugf("deleting status: %s", s.ID)
|
||||||
f.state.Workers.EnqueueFediAPI(ctx, messages.FromFediAPI{
|
f.state.Workers.EnqueueFediAPI(ctx, messages.FromFediAPI{
|
||||||
APObjectType: ap.ObjectNote,
|
APObjectType: ap.ObjectNote,
|
||||||
APActivityType: ap.ActivityDelete,
|
APActivityType: ap.ActivityDelete,
|
||||||
GTSModel: s,
|
GTSModel: s,
|
||||||
ReceivingAccount: receivingAcct,
|
ReceivingAccount: receivingAcct,
|
||||||
|
RequestingAccount: requestingAcct,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue