From 6f22ec38422f537cdafe02f157faa18e606828e6 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 13 Apr 2024 17:07:28 +0800 Subject: [PATCH] Fix missing idempotency key --- src/components/compose.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index b926f79a..0f93a283 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -988,7 +988,11 @@ function Compose({ } else { try { newStatus = await masto.v1.statuses.create(params, { - idempotencyKey: UID.current, + requestInit: { + headers: { + 'Idempotency-Key': UID.current, + }, + }, }); } catch (_) { // If idempotency key fails, try again without it