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()}\"",
|
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))!;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue