Fix timed mute lint

This commit is contained in:
Tusooa Zhu 2022-08-01 11:08:32 -04:00 committed by tusooa
parent 8a99d129dc
commit 5359633c74
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224

View File

@ -1121,7 +1121,7 @@ const fetchMutes = ({ credentials }) => {
const muteUser = ({ id, expiresIn, credentials }) => {
const payload = {}
if (expiresIn) {
payload['expires_in'] = expiresIn
payload.expires_in = expiresIn
}
return promisedRequest({ url: MASTODON_MUTE_USER_URL(id), credentials, method: 'POST', payload })
}