1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
This commit is contained in:
xmflsct
2022-12-23 18:49:50 +01:00
parent f3c40e9486
commit 3594500b3e
7 changed files with 35 additions and 6 deletions

View File

@ -48,6 +48,7 @@ type MutationVarsRelationship =
payload: {
action: 'block'
state: boolean
reblogs?: undefined
notify?: undefined
}
}
@ -57,6 +58,7 @@ type MutationVarsRelationship =
payload: {
action: 'follow'
state: boolean
reblogs?: boolean
notify?: boolean
}
}
@ -70,6 +72,8 @@ const mutationFunction = async (params: MutationVarsRelationship) => {
}).then(res => res.body)
case 'outgoing':
const formData = new FormData()
typeof params.payload.reblogs === 'boolean' &&
formData.append('reblogs', params.payload.reblogs.toString())
typeof params.payload.notify === 'boolean' &&
formData.append('notify', params.payload.notify.toString())