diff --git a/Pleroma/Pleroma.cs b/Pleroma/Pleroma.cs index 1585eb7..e47a9a0 100644 --- a/Pleroma/Pleroma.cs +++ b/Pleroma/Pleroma.cs @@ -816,7 +816,7 @@ public class PleromaAdmin : Pleroma })))!; } - public Task ChangeScope(StatusID id, bool? sensitive = null, StatusVisibility? visibility = null) + public Task ChangeScope(StatusID status, bool? sensitive = null, StatusVisibility? visibility = null) { MemoryStream mem = new MemoryStream(); @@ -843,7 +843,7 @@ public class PleromaAdmin : Pleroma return Retry(() => { mem.Position = 0; - HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Put, $"/api/v1/pleroma/admin/statuses/{id}"); + HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Put, $"/api/v1/pleroma/admin/statuses{WebUtility.UrlEncode(status.ID)}"); req.Content = new StreamContent(mem); req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/json"); return req;