fix follows
This commit is contained in:
parent
484a76b9ba
commit
c062ae66e3
2 changed files with 31 additions and 40 deletions
|
|
@ -245,19 +245,19 @@ export const getCaptcha = () =>
|
|||
})
|
||||
|
||||
export const followUser = ({ id, credentials, ...options }) => {
|
||||
const form = {}
|
||||
const payload = {}
|
||||
|
||||
if (options.reblogs !== undefined) {
|
||||
form.reblogs = options.reblogs
|
||||
payload.reblogs = options.reblogs
|
||||
}
|
||||
|
||||
if (options.notify !== undefined) {
|
||||
form.notify = options.notify
|
||||
payload.notify = options.notify
|
||||
}
|
||||
|
||||
return promisedRequest({
|
||||
url: MASTODON_FOLLOW_URL(id),
|
||||
formData: form,
|
||||
payload,
|
||||
credentials,
|
||||
method: 'POST',
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue