pleroma: nitpick
This commit is contained in:
parent
64fe006e21
commit
b96992d7f0
1 changed files with 5 additions and 5 deletions
|
@ -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))!;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue