fix(request/mute): add correct body on unmute
This commit is contained in:
parent
3619be71ab
commit
4152179dea
|
@ -6,7 +6,7 @@ import org.joinmastodon.android.model.Relationship;
|
|||
public class SetAccountMuted extends MastodonAPIRequest<Relationship>{
|
||||
public SetAccountMuted(String id, boolean muted, long duration){
|
||||
super(HttpMethod.POST, "/accounts/"+id+"/"+(muted ? "mute" : "unmute"), Relationship.class);
|
||||
setRequestBody(new Request(duration));
|
||||
setRequestBody(muted ? new Request(duration): new Object());
|
||||
}
|
||||
|
||||
private static class Request{
|
||||
|
|
Loading…
Reference in New Issue