fix(unmuting): add request body when unmuting to prevent failed POST request

This commit is contained in:
LucasGGamerM
2024-04-10 12:37:55 -03:00
parent 6c519b3cb9
commit 2c743b11e6

View File

@@ -8,6 +8,9 @@ public class SetAccountMuted extends MastodonAPIRequest<Relationship>{
super(HttpMethod.POST, "/accounts/"+id+"/"+(muted ? "mute" : "unmute"), Relationship.class);
if(muted)
setRequestBody(new Request(duration, muteNotifications));
else{
setRequestBody(new Object());
}
}
private static class Request{