diff options
author | 2022-06-24 17:17:40 +0200 | |
---|---|---|
committer | 2022-06-24 17:17:40 +0200 | |
commit | 0846b76e9343fd90a33f5a8864f39cf071d3841e (patch) | |
tree | f5bc3b506cd87b09a46d6f17982c3633c909b14f /internal/processing/fromfederator.go | |
parent | [bugfix] allow setting empty email via instance patch (#665) (diff) | |
download | gotosocial-0846b76e9343fd90a33f5a8864f39cf071d3841e.tar.xz |
[bugfix] Fix 404 on status delete redraft (#668)
* add unattach function to media processor
* call delete or unattach appropriately
unattach from client api, delete from federated api
* typo fix
Diffstat (limited to 'internal/processing/fromfederator.go')
-rw-r--r-- | internal/processing/fromfederator.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/processing/fromfederator.go b/internal/processing/fromfederator.go index 60f5cc787..e39a6b4e8 100644 --- a/internal/processing/fromfederator.go +++ b/internal/processing/fromfederator.go @@ -367,7 +367,11 @@ func (p *processor) processDeleteStatusFromFederator(ctx context.Context, federa return errors.New("note was not parseable as *gtsmodel.Status") } - return p.wipeStatus(ctx, statusToDelete) + // delete attachments from this status since this request + // comes from the federating API, and there's no way the + // poster can do a delete + redraft for it on our instance + deleteAttachments := true + return p.wipeStatus(ctx, statusToDelete, deleteAttachments) } // processDeleteAccountFromFederator handles Activity Delete and Object Profile |