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()}\"", FileName = $"\"{Random.Shared.NextInt64()}\"",
}; };
MultipartFormDataContent form = new MultipartFormDataContent(); MultipartFormDataContent form = [content];
form.Add(content); HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Post, "/api/v1/media")
{
HttpRequestMessage req = new HttpRequestMessage(HttpMethod.Post, "/api/v1/media"); Content = form
req.Content = form; };
return (await Retry<Attachment>(req))!; return (await Retry<Attachment>(req))!;
} }