pleroma: nitpick

This commit is contained in:
uwaa 2024-12-19 07:31:09 +00:00
parent 64fe006e21
commit b96992d7f0

View file

@ -334,11 +334,11 @@ public class Pleroma
FileName = $"\"{Random.Shared.NextInt64()}\"",
};
MultipartFormDataContent form = new MultipartFormDataContent();
form.Add(content);
HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Post, "/api/v1/media");
req.Content = form;
MultipartFormDataContent form = [content];
HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Post, "/api/v1/media")
{
Content = form
};
return (await Retry<Attachment>(req))!;
}