pleroma: encode id in ChangeScope
This commit is contained in:
parent
7a4ead1839
commit
75255633e0
1 changed files with 2 additions and 2 deletions
|
@ -816,7 +816,7 @@ public class PleromaAdmin : Pleroma
|
||||||
})))!;
|
})))!;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<Status> ChangeScope(StatusID id, bool? sensitive = null, StatusVisibility? visibility = null)
|
public Task<Status> ChangeScope(StatusID status, bool? sensitive = null, StatusVisibility? visibility = null)
|
||||||
{
|
{
|
||||||
MemoryStream mem = new MemoryStream();
|
MemoryStream mem = new MemoryStream();
|
||||||
|
|
||||||
|
@ -843,7 +843,7 @@ public class PleromaAdmin : Pleroma
|
||||||
return Retry<Status>(() =>
|
return Retry<Status>(() =>
|
||||||
{
|
{
|
||||||
mem.Position = 0;
|
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 = new StreamContent(mem);
|
||||||
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
|
req.Content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
|
||||||
return req;
|
return req;
|
||||||
|
|
Loading…
Reference in a new issue