Merge branch 'develop' of git.pleroma.social:pleroma/pleroma-fe into develop
This commit is contained in:
commit
66c44b4260
62 changed files with 1206 additions and 595 deletions
|
@ -632,7 +632,8 @@ const postStatus = ({
|
|||
mediaIds = [],
|
||||
inReplyToStatusId,
|
||||
contentType,
|
||||
preview
|
||||
preview,
|
||||
idempotencyKey
|
||||
}) => {
|
||||
const form = new FormData()
|
||||
const pollOptions = poll.options || []
|
||||
|
@ -666,10 +667,15 @@ const postStatus = ({
|
|||
form.append('preview', 'true')
|
||||
}
|
||||
|
||||
let postHeaders = authHeaders(credentials)
|
||||
if (idempotencyKey) {
|
||||
postHeaders['idempotency-key'] = idempotencyKey
|
||||
}
|
||||
|
||||
return fetch(MASTODON_POST_STATUS_URL, {
|
||||
body: form,
|
||||
method: 'POST',
|
||||
headers: authHeaders(credentials)
|
||||
headers: postHeaders
|
||||
})
|
||||
.then((response) => {
|
||||
return response.json()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue