kopia lustrzana https://github.com/cheeaun/phanpy
Fix missing idempotency key
rodzic
2faf9b4c20
commit
6f22ec3842
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue