mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Correct method used in RedactUserStatus
Copying and pasting is bad actually
This commit is contained in:
parent
81cecd55cd
commit
a57361a758
1 changed files with 1 additions and 1 deletions
|
|
@ -209,6 +209,6 @@ type RespRedactUserStatus struct {
|
|||
}
|
||||
|
||||
func (cli *Client) RedactUserStatus(ctx context.Context, redactID string) (resp RespRedactUser, err error) {
|
||||
_, err = cli.Client.MakeRequest(ctx, http.MethodPost, cli.BuildAdminURL("v1", "user", "redact_status", redactID), nil, &resp)
|
||||
_, err = cli.Client.MakeRequest(ctx, http.MethodGet, cli.BuildAdminURL("v1", "user", "redact_status", redactID), nil, &resp)
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue