mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 01:08:50 +01:00
Fix missing idempotency key
This commit is contained in:
parent
2faf9b4c20
commit
6f22ec3842
1 changed files with 5 additions and 1 deletions
|
@ -988,7 +988,11 @@ function Compose({
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
newStatus = await masto.v1.statuses.create(params, {
|
newStatus = await masto.v1.statuses.create(params, {
|
||||||
idempotencyKey: UID.current,
|
requestInit: {
|
||||||
|
headers: {
|
||||||
|
'Idempotency-Key': UID.current,
|
||||||
|
},
|
||||||
|
},
|
||||||
});
|
});
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
// If idempotency key fails, try again without it
|
// If idempotency key fails, try again without it
|
||||||
|
|
Loading…
Reference in a new issue