Merge pull request #771 from h3poteto/fix/put-update-filter
Fix http method to update filters
This commit is contained in:
commit
b1b81eb915
|
@ -855,7 +855,7 @@ export default class Mastodon implements MegalodonInterface {
|
|||
})
|
||||
}
|
||||
}
|
||||
return this.client.post<MastodonAPI.Entity.Filter>(`/api/v1/filters/${id}`, params).then(res => {
|
||||
return this.client.put<MastodonAPI.Entity.Filter>(`/api/v1/filters/${id}`, params).then(res => {
|
||||
return Object.assign(res, {
|
||||
data: MastodonAPI.Converter.filter(res.data)
|
||||
})
|
||||
|
|
|
@ -868,7 +868,7 @@ export default class Pleroma implements MegalodonInterface {
|
|||
})
|
||||
}
|
||||
}
|
||||
return this.client.post<PleromaAPI.Entity.Filter>(`/api/v1/filters/${id}`, params).then(res => {
|
||||
return this.client.put<PleromaAPI.Entity.Filter>(`/api/v1/filters/${id}`, params).then(res => {
|
||||
return Object.assign(res, {
|
||||
data: PleromaAPI.Converter.filter(res.data)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue